WebObjects 5.2

com.webobjects.jdbcadaptor
Class MySQLPlugIn

java.lang.Object
  |
  +--com.webobjects.jdbcadaptor.JDBCPlugIn
        |
        +--com.webobjects.jdbcadaptor.MySQLPlugIn

public class MySQLPlugIn
extends JDBCPlugIn


Inner Class Summary
static class MySQLPlugIn.MySQLExpression
           
static class MySQLPlugIn.MySQLSynchronizationFactory
           
 
Fields inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn
DefaultPlugInClassName, DefaultPlugInSuffix
 
Constructor Summary
MySQLPlugIn(JDBCAdaptor adaptor)
           
 
Method Summary
 EOSynchronizationFactory createSynchronizationFactory()
          Creates a new EOSynchronizationFactory using the plugin's response to adaptor().
 String databaseProductName()
          Returns a string identifying the database.
 String defaultDriverName()
          Returns a fully qualified name of the JDBC driver class that this plugin prefers to use.
 Class defaultExpressionClass()
          Returns the Java Class to use as the expression class.
 Object fetchBLOB(ResultSet rs, int column, EOAttribute attribute, boolean materialize)
          Fetch a BLOB.
 NSDictionary jdbcInfo()
          Returns database-specific information about the JDBC data source.
 
Methods inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn
adaptor, assignTypeForAttribute, canDescribeStoredProcedure, connectionPropertiesForConnectionDictionary, connectionURL, createAttributeForRow, createExpressionFactory, databaseInformation, expressionFactory, fetchCLOB, isPseudoColumnName, jdbcTypeForUnknownExternalType, newPrimaryKeys, newPrimaryKeySelectString, plugInNameForURL, plugInValueForValue, primaryKeyTableName, removePlugInNameForSubprotocol, schemaNameForEntity, setPlugInNameForSubprotocol, sqlStatementForGettingProcedureNames, sqlStatementForGettingTableNames, sqlStatementForTableNamed, storedProcedureCatalogPattern, storedProcedureNamed, storedProcedureSchemaPattern, synchronizationFactory, tableTypes, updateLOBs, wildcardPatternForAttributes, wildcardPatternForSchema, wildcardPatternForTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLPlugIn

public MySQLPlugIn(JDBCAdaptor adaptor)
Method Detail

createSynchronizationFactory

public EOSynchronizationFactory createSynchronizationFactory()
Description copied from class: JDBCPlugIn
Creates a new EOSynchronizationFactory using the plugin's response to adaptor(). The default EOSynchronizationFactory supports only basic SQL table generation. Subclasses need to override this method to support schema synchronization.
Overrides:
createSynchronizationFactory in class JDBCPlugIn
Following copied from class: com.webobjects.jdbcadaptor.JDBCPlugIn
Returns:
a JDBCExpressionFactory
See Also:
JDBCPlugIn.synchronizationFactory()

databaseProductName

public String databaseProductName()
Description copied from class: JDBCPlugIn
Returns a string identifying the database. Subclasses should override.
Overrides:
databaseProductName in class JDBCPlugIn
Following copied from class: com.webobjects.jdbcadaptor.JDBCPlugIn
Returns:
a String identifying the database

defaultDriverName

public String defaultDriverName()
Description copied from class: JDBCPlugIn
Returns a fully qualified name of the JDBC driver class that this plugin prefers to use. The adaptor will attempt to load this class when making a connection. Subclasses should override.
Overrides:
defaultDriverName in class JDBCPlugIn
Following copied from class: com.webobjects.jdbcadaptor.JDBCPlugIn
Returns:
JDBC driver class name

defaultExpressionClass

public Class defaultExpressionClass()
Description copied from class: JDBCPlugIn
Returns the Java Class to use as the expression class. The default is JDBCExpression. Subclasses will typically override to use their own subclass of JDBCExpression.
Overrides:
defaultExpressionClass in class JDBCPlugIn
Following copied from class: com.webobjects.jdbcadaptor.JDBCPlugIn
Returns:
a Java Class (subclass of JDBCExpression)
See Also:
JDBCExpression, JDBCAdaptor.defaultExpressionClass()

fetchBLOB

public Object fetchBLOB(ResultSet rs,
                        int column,
                        EOAttribute attribute,
                        boolean materialize)
                 throws SQLException
Description copied from class: JDBCPlugIn
Fetch a BLOB. This supports a database-specific way of fetching a BLOB so plugin subclasses need to override the default, which simply returns null.
Overrides:
fetchBLOB in class JDBCPlugIn
Following copied from class: com.webobjects.jdbcadaptor.JDBCPlugIn
Parameters:
rs - the current ResultSet
column - the column index corresponding to the BLOB
attribute - the attribute mapped to the BLOB
materialize - a boolean that determines if the BLOB should be fully "materialized" (if true) or left as a reference (if false)
See Also:
JDBCPlugIn.updateLOBs(com.webobjects.jdbcadaptor.JDBCChannel, com.webobjects.jdbcadaptor.JDBCExpression, com.webobjects.foundation.NSDictionary, com.webobjects.eoaccess.EOEntity)

jdbcInfo

public NSDictionary jdbcInfo()
Description copied from class: JDBCPlugIn
Returns database-specific information about the JDBC data source. Subclasses may want to return a modified copy of the dictionary returned by calling super.
Overrides:
jdbcInfo in class JDBCPlugIn
Following copied from class: com.webobjects.jdbcadaptor.JDBCPlugIn
Returns:
an NSDictionary describing database-specific information about the JDBC data source

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.