Package org.apache.cayenne.dba.h2
Class H2Adapter
java.lang.Object
org.apache.cayenne.dba.JdbcAdapter
org.apache.cayenne.dba.h2.H2Adapter
- All Implemented Interfaces:
- DbAdapter
public class H2Adapter extends JdbcAdapter
DbAdapter implementation for H2
 RDBMS . Sample connection settings to use with H2 are shown
 below:
 
 
      postgres.jdbc.username = sa
      postgres.jdbc.password = 
      postgres.jdbc.url = jdbc:h2:cayenne
      postgres.jdbc.driver = org.h2.Driver
 - Since:
- 3.0
- 
Field SummaryFields inherited from class org.apache.cayenne.dba.JdbcAdapterbatchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
- 
Constructor SummaryConstructors Constructor Description H2Adapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
- 
Method SummaryModifier and Type Method Description protected PkGeneratorcreatePkGenerator()Creates and returns a primary key generator.voidcreateTableAppendColumn(StringBuffer sqlBuffer, DbAttribute column)Appends SQL for column creation to CREATE TABLE buffer.Methods inherited from class org.apache.cayenne.dba.JdbcAdapterbindParameter, buildAttribute, configureExtendedTypes, createEJBQLTranslatorFactory, createFkConstraint, createQuotingStrategy, createTable, createTableAppendPKClause, createUniqueConstraint, dropTableStatements, externalTypesForJdbcType, findResource, getAction, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQualifierTranslator, getQuotingStrategy, getSelectTranslator, getSystemCatalogs, getSystemSchemas, getType, initExtendedTypes, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, unwrap
- 
Constructor Details- 
H2Adapterpublic H2Adapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
 
- 
- 
Method Details- 
createTableAppendColumnDescription copied from class:JdbcAdapterAppends SQL for column creation to CREATE TABLE buffer.- Specified by:
- createTableAppendColumnin interface- DbAdapter
- Overrides:
- createTableAppendColumnin class- JdbcAdapter
- Parameters:
- sqlBuffer- the- StringBufferto append the column type to
- column- the- DbAttributedefining the column to append type for
 
- 
createPkGeneratorDescription copied from class:JdbcAdapterCreates and returns a primary key generator. This factory method should be overriden by JdbcAdapter subclasses to provide custom implementations of PKGenerator.- Overrides:
- createPkGeneratorin class- JdbcAdapter
 
 
-