public class DB2PlugIn extends JDBCPlugIn
JDBCPlugIn.LobEntry_adaptor, _expressionClass, _expressionFactory, _pkTableName, _subprotocolRegistry, _syncFactory, DefaultPlugInClassName, DefaultPlugInSuffix| Constructor and Description |
|---|
DB2PlugIn(JDBCAdaptor adaptor)
Designated constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
_sequenceNameForEntity(EOEntity entity)
Utility method that returns the name of the sequence associated
with
entity |
EOSynchronizationFactory |
createSynchronizationFactory()
Returns a "pure java" synchronization factory.
|
java.lang.String |
databaseProductName()
Name of the database.
|
java.lang.String |
defaultDriverName()
Name of the driver.
|
java.lang.Class<? extends JDBCExpression> |
defaultExpressionClass()
Expression class to create.
|
protected boolean |
isPrimaryKeyGenerationNotSupported(EOEntity entity)
Checks whether primary key generation can be supported for
entity |
NSDictionary |
jdbcInfo()
This is usually extracted from the the database using
JDBC, but this is really inconvenient for users who are
trying to generate SQL at some.
|
java.lang.String |
name()
WebObjects 5.4's version of JDBCAdaptor will use this
in order to assemble the name of the prototype to use when
it loads models.
|
NSArray |
newPrimaryKeys(int count,
EOEntity entity,
JDBCChannel channel)
Overrides the parent implementation to provide a more efficient mechanism for generating primary keys,
while generating the primary key support on the fly.
|
protected java.lang.String |
sequenceNameForEntity(EOEntity entity)
Utility method that returns the name of the sequence associated
with
entity. |
protected boolean |
shouldUseBundledJdbcInfo()
This method returns true if the connection URL for the
database has a special flag on it which indicates to the
system that the jdbcInfo which has been bundled into the
plugin is acceptable to use in place of actually going to
the database and getting it.
|
_attributeForPath, _couldIgnoreException, _relationshipForPath, _takeValueForKeyPath, adaptor, assignTypeForAttribute, canDescribeStoredProcedure, connectionPropertiesForConnectionDictionary, connectionURL, createAttributeForRow, createExpressionFactory, createSchemaSynchronizationFactory, databaseInformation, expressionFactory, fetchBLOB, fetchCLOB, isDroppedConnectionException, isPseudoColumnName, jdbcTypeForUnknownExternalType, newPrimaryKeySelectString, plugInNameForURL, plugInValueForValue, primaryKeyLockString, primaryKeyTableCreateString, primaryKeyTableName, removePlugInNameForSubprotocol, schemaNameForEntity, schemaSynchronizationFactory, setPlugInNameForSubprotocol, sqlStatementForGettingProcedureNames, sqlStatementForGettingTableNames, sqlStatementForTableNamed, storedProcedureCatalogPattern, storedProcedureNamed, storedProcedureSchemaPattern, synchronizationFactory, tableTypes, updateLOBs, wildcardPatternForAttributes, wildcardPatternForSchema, wildcardPatternForTablespublic DB2PlugIn(JDBCAdaptor adaptor)
public java.lang.String defaultDriverName()
defaultDriverName in class JDBCPlugInpublic java.lang.String databaseProductName()
databaseProductName in class JDBCPlugInpublic java.lang.String name()
WebObjects 5.4's version of JDBCAdaptor will use this in order to assemble the name of the prototype to use when it loads models.
name in class JDBCPlugInprotected boolean shouldUseBundledJdbcInfo()
This method returns true if the connection URL for the database has a special flag on it which indicates to the system that the jdbcInfo which has been bundled into the plugin is acceptable to use in place of actually going to the database and getting it.
public NSDictionary jdbcInfo()
This is usually extracted from the the database using JDBC, but this is really inconvenient for users who are trying to generate SQL at some. A specific version of the data has been written into the property list of the framework and this can be used as a hard-coded equivalent.
jdbcInfo in class JDBCPlugInpublic EOSynchronizationFactory createSynchronizationFactory()
createSynchronizationFactory in class JDBCPlugInpublic java.lang.Class<? extends JDBCExpression> defaultExpressionClass()
defaultExpressionClass in class JDBCPlugInpublic NSArray newPrimaryKeys(int count, EOEntity entity, JDBCChannel channel)
newPrimaryKeys in class JDBCPlugIncount - the batch sizeentity - the entity requesting primary keyschannel - open JDBCChannelprotected java.lang.String sequenceNameForEntity(EOEntity entity)
entity. Non Static so we can reuse code.entity - the entityprotected static java.lang.String _sequenceNameForEntity(EOEntity entity)
entityentity - the entityprotected boolean isPrimaryKeyGenerationNotSupported(EOEntity entity)
entityentity - the entity to be checkedCopyright © 2002 – 2022 Project Wonder.