public class H2Adapter extends JdbcAdapter
postgres.jdbc.username = sa
postgres.jdbc.password =
postgres.jdbc.url = jdbc:h2:cayenne
postgres.jdbc.driver = org.h2.Driver
batchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler| Constructor and Description |
|---|
H2Adapter(RuntimeProperties runtimeProperties,
List<ExtendedType> defaultExtendedTypes,
List<ExtendedType> userExtendedTypes,
List<ExtendedTypeFactory> extendedTypeFactories,
ResourceLocator resourceLocator,
ValueObjectTypeRegistry valueObjectTypeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected PkGenerator |
createPkGenerator()
Creates and returns a primary key generator.
|
void |
createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Appends SQL for column creation to CREATE TABLE buffer.
|
SQLAction |
getAction(Query query,
DataNode node)
Uses JdbcActionBuilder to create the right action.
|
SQLTreeProcessor |
getSqlTreeProcessor() |
bindParameter, buildAttribute, configureExtendedTypes, createEJBQLTranslatorFactory, createFkConstraint, createQuotingStrategy, createTable, createTableAppendPKClause, createUniqueConstraint, dropTableStatements, externalTypesForJdbcType, findResource, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQuotingStrategy, getSelectTranslator, getSelectTranslator, getSystemCatalogs, getSystemSchemas, getType, initExtendedTypes, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsGeneratedKeysForBatchInsertspublic H2Adapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
public void createTableAppendColumn(StringBuffer sqlBuffer, DbAttribute column)
JdbcAdaptercreateTableAppendColumn in interface DbAdaptercreateTableAppendColumn in class JdbcAdaptersqlBuffer - the StringBuffer to append the column type tocolumn - the DbAttribute defining the column to append type forpublic SQLTreeProcessor getSqlTreeProcessor()
getSqlTreeProcessor in interface DbAdaptergetSqlTreeProcessor in class JdbcAdapterSQLTreeProcessor that can adjust SQL tree to specific database flavourpublic SQLAction getAction(Query query, DataNode node)
JdbcAdaptergetAction in interface DbAdaptergetAction in class JdbcAdapterprotected PkGenerator createPkGenerator()
JdbcAdaptercreatePkGenerator in class JdbcAdapterCopyright © 2001–2021 Apache Cayenne. All rights reserved.