Package org.apache.cayenne.dba.hsqldb
Class HSQLDBAdapter
java.lang.Object
org.apache.cayenne.dba.JdbcAdapter
org.apache.cayenne.dba.hsqldb.HSQLDBAdapter
- All Implemented Interfaces:
- DbAdapter
- Direct Known Subclasses:
- HSQLDBNoSchemaAdapter
DbAdapter implementation for the 
 HSQLDB RDBMS . Sample connection settings to use with HSQLDB are shown
 below:
 
        test-hsqldb.jdbc.username = test
        test-hsqldb.jdbc.password = secret
        test-hsqldb.jdbc.url = jdbc:hsqldb:hsql://serverhostname
        test-hsqldb.jdbc.driver = org.hsqldb.jdbcDriver
 - 
Field SummaryFieldsFields inherited from class org.apache.cayenne.dba.JdbcAdaptercaseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
- 
Constructor SummaryConstructorsConstructorDescriptionHSQLDBAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCalled fromJdbcAdapter.initExtendedTypes(List, List, List, ValueObjectTypeRegistry)to load adapter-specific types into the ExtendedTypeMap right after the default types are loaded, but before the DI overrides are.protected EJBQLTranslatorFactoryCreates and returns anEJBQLTranslatorFactoryused to generate visitors for EJBQL to SQL translations.Adds an ADD CONSTRAINT clause to a relationship constraint.createTable(DbEntity ent) Uses "CREATE CACHED TABLE" instead of "CREATE TABLE".voidcreateTableAppendColumn(StringBuffer sqlBuffer, DbAttribute column) Appends SQL for column creation to CREATE TABLE buffer.createUniqueConstraint(DbEntity source, Collection<DbAttribute> columns) Returns a DDL string to create a unique constraint over a set of columns.Uses special action builder to create the right action.protected StringgetSchemaName(DbEntity entity) Returns DbEntity schema name for 1.8 and on.protected StringgetTableName(DbEntity entity) Generate fully-qualified name for 1.8 and on.Methods inherited from class org.apache.cayenne.dba.JdbcAdapterbindParameter, buildAttribute, createQuotingStrategy, createTableAppendPKClause, dropTableStatements, externalTypesForJdbcType, findResource, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQuotingStrategy, getSelectTranslator, getSystemCatalogs, getSystemSchemas, getType, initExtendedTypes, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, typeSupportsScale, unwrapMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cayenne.dba.DbAdaptersupportsGeneratedKeysForBatchInserts
- 
Field Details- 
TRIM_FUNCTION- See Also:
 
 
- 
- 
Constructor Details- 
HSQLDBAdapterpublic HSQLDBAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry) 
 
- 
- 
Method Details- 
configureExtendedTypesDescription copied from class:JdbcAdapterCalled fromJdbcAdapter.initExtendedTypes(List, List, List, ValueObjectTypeRegistry)to load adapter-specific types into the ExtendedTypeMap right after the default types are loaded, but before the DI overrides are. This method has specific implementations in JdbcAdapter subclasses.- Overrides:
- configureExtendedTypesin class- JdbcAdapter
- Since:
- 4.0
 
- 
getSqlTreeProcessor- Specified by:
- getSqlTreeProcessorin interface- DbAdapter
- Overrides:
- getSqlTreeProcessorin class- JdbcAdapter
- Returns:
- SQLTreeProcessorthat can adjust SQL tree to specific database flavour
- Since:
- 4.2
 
- 
createEJBQLTranslatorFactoryDescription copied from class:JdbcAdapterCreates and returns anEJBQLTranslatorFactoryused to generate visitors for EJBQL to SQL translations. This method should be overriden by subclasses that need to customize EJBQL generation.- Overrides:
- createEJBQLTranslatorFactoryin class- JdbcAdapter
- Since:
- 4.0
 
- 
getTableNameGenerate fully-qualified name for 1.8 and on. Subclass generates unqualified name.- Since:
- 1.2
 
- 
getSchemaNameReturns DbEntity schema name for 1.8 and on. Subclass generates unqualified name.- Since:
- 1.2
 
- 
getActionUses special action builder to create the right action.- Specified by:
- getActionin interface- DbAdapter
- Overrides:
- getActionin class- JdbcAdapter
- Since:
- 1.2
 
- 
createUniqueConstraintReturns a DDL string to create a unique constraint over a set of columns.- Specified by:
- createUniqueConstraintin interface- DbAdapter
- Overrides:
- createUniqueConstraintin class- JdbcAdapter
- Since:
- 1.1
 
- 
createFkConstraintAdds an ADD CONSTRAINT clause to a relationship constraint.- Specified by:
- createFkConstraintin interface- DbAdapter
- Overrides:
- createFkConstraintin class- JdbcAdapter
- See Also:
 
- 
createTableUses "CREATE CACHED TABLE" instead of "CREATE TABLE".- Specified by:
- createTablein interface- DbAdapter
- Overrides:
- createTablein class- JdbcAdapter
- Since:
- 1.2
 
- 
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
 
 
-