public class _H2PlugIn extends JDBCPlugIn
Modifier and Type | Class and Description |
---|---|
static class |
_H2PlugIn.H2Expression |
static class |
_H2PlugIn.H2SynchronizationFactory |
JDBCPlugIn.LobEntry
Modifier and Type | Field and Description |
---|---|
protected static NSMutableDictionary<String,String> |
sequenceNameOverrides |
_adaptor, _expressionClass, _expressionFactory, _pkTableName, _subprotocolRegistry, _syncFactory, DefaultPlugInClassName, DefaultPlugInSuffix
Constructor and Description |
---|
_H2PlugIn(JDBCAdaptor adaptor) |
Modifier and Type | Method and Description |
---|---|
protected static String |
_sequenceNameForEntity(EOEntity entity)
Utility method that returns the name of the sequence associated
with the given
entity . |
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory |
createSchemaSynchronizationFactory() |
String |
databaseProductName() |
String |
defaultDriverName() |
Class<? extends JDBCExpression> |
defaultExpressionClass() |
Object |
fetchBLOB(ResultSet rs,
int column,
EOAttribute attribute,
boolean materialize) |
Object |
fetchCLOB(ResultSet rs,
int column,
EOAttribute attribute,
boolean materialize) |
NSDictionary<String,Object> |
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.
|
String |
name() |
NSArray<NSDictionary<String,Object>> |
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 static String |
quoteTableName(String name) |
protected static void |
setSequenceNameOverride(String defaultName,
String h2Name)
Sets the sequence name to be used in H2 instead of the default WO sequence name.
|
protected boolean |
shouldUseBundledJdbcInfo()
This method returns
true by default unless the connection URL for the database has
useBundledJdbcInfo=false on it which indicates to the system
that the jdbcInfo which has been bundled into the plugin is not acceptable to
use and instead it should fetch a fresh copy from the database. |
_attributeForPath, _couldIgnoreException, _relationshipForPath, _takeValueForKeyPath, adaptor, assignTypeForAttribute, canDescribeStoredProcedure, connectionPropertiesForConnectionDictionary, connectionURL, createAttributeForRow, createExpressionFactory, createSynchronizationFactory, databaseInformation, expressionFactory, isDroppedConnectionException, isPseudoColumnName, jdbcTypeForUnknownExternalType, newPrimaryKeySelectString, plugInNameForURL, plugInValueForValue, primaryKeyLockString, primaryKeyTableCreateString, primaryKeyTableName, removePlugInNameForSubprotocol, schemaNameForEntity, schemaSynchronizationFactory, setPlugInNameForSubprotocol, sqlStatementForGettingProcedureNames, sqlStatementForGettingTableNames, sqlStatementForTableNamed, storedProcedureCatalogPattern, storedProcedureNamed, storedProcedureSchemaPattern, synchronizationFactory, tableTypes, updateLOBs, wildcardPatternForAttributes, wildcardPatternForSchema, wildcardPatternForTables
protected static NSMutableDictionary<String,String> sequenceNameOverrides
public _H2PlugIn(JDBCAdaptor adaptor)
protected static String _sequenceNameForEntity(EOEntity entity)
entity
.entity
- the entityprotected static void setSequenceNameOverride(String defaultName, String h2Name)
defaultName
- WO default sequence nameh2Name
- sequence name in H2public Object fetchBLOB(ResultSet rs, int column, EOAttribute attribute, boolean materialize) throws SQLException
fetchBLOB
in class JDBCPlugIn
SQLException
public Object fetchCLOB(ResultSet rs, int column, EOAttribute attribute, boolean materialize) throws SQLException
fetchCLOB
in class JDBCPlugIn
SQLException
public com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory createSchemaSynchronizationFactory()
createSchemaSynchronizationFactory
in class JDBCPlugIn
public String databaseProductName()
databaseProductName
in class JDBCPlugIn
public String defaultDriverName()
defaultDriverName
in class JDBCPlugIn
public Class<? extends JDBCExpression> defaultExpressionClass()
defaultExpressionClass
in class JDBCPlugIn
public NSDictionary<String,Object> 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.
Provide system property h2.updateJDBCInfo=true
to
cause H2JDBCInfo.plist to be written out to the platform temp dir.
jdbcInfo
in class JDBCPlugIn
public String name()
name
in class JDBCPlugIn
protected boolean shouldUseBundledJdbcInfo()
true
by default unless the connection URL for the database has
useBundledJdbcInfo=false
on it which indicates to the system
that the jdbcInfo which has been bundled into the plugin is not acceptable to
use and instead it should fetch a fresh copy from the database.true
if bundled jdbcInfo should be usedpublic NSArray<NSDictionary<String,Object>> newPrimaryKeys(int count, EOEntity entity, JDBCChannel channel)
newPrimaryKeys
in class JDBCPlugIn
count
- the batch sizeentity
- the entity requesting primary keyschannel
- open JDBCChannelCopyright © 2002 – 2024 Project Wonder.