public class HSQLDBAdapter extends JdbcAdapter
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
batchQueryBuilderFactory, caseInsensitiveCollations, CI_PROPERTY, ejbqlTranslatorFactory, extendedTypes, identifiersEndQuote, identifiersStartQuote, logger, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler| Constructor and Description |
|---|
HSQLDBAdapter(RuntimeProperties runtimeProperties,
List<ExtendedType> defaultExtendedTypes,
List<ExtendedType> userExtendedTypes,
List<ExtendedTypeFactory> extendedTypeFactories) |
| Modifier and Type | Method and Description |
|---|---|
String |
createFkConstraint(DbRelationship rel)
Adds an ADD CONSTRAINT clause to a relationship constraint.
|
String |
createTable(DbEntity ent)
Uses "CREATE CACHED TABLE" instead of "CREATE TABLE".
|
void |
createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Appends SQL for column creation to CREATE TABLE buffer.
|
String |
createUniqueConstraint(DbEntity source,
Collection<DbAttribute> columns)
Returns a DDL string to create a unique constraint over a set of columns.
|
SQLAction |
getAction(Query query,
DataNode node)
Uses special action builder to create the right action.
|
protected String |
getSchemaName(DbEntity entity)
Generate fully-qualified name for 1.8 and on.
|
protected String |
getTableName(DbEntity entity)
Generate fully-qualified name for 1.8 and on.
|
MergerFactory |
mergerFactory() |
bindParameter, buildAttribute, configureExtendedTypes, createEJBQLTranslatorFactory, createPkGenerator, createTableAppendPKClause, dropTableStatements, externalTypesForJdbcType, findResource, getBatchQueryBuilderFactory, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getIdentifiersEndQuote, getIdentifiersStartQuote, getJdbcEventLogger, getPkGenerator, getQualifierTranslator, getQuotingStrategy, initExtendedTypes, initIdentifiersQuotes, setBatchQueryBuilderFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLengthpublic HSQLDBAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories)
protected String getTableName(DbEntity entity)
protected String getSchemaName(DbEntity entity)
public SQLAction getAction(Query query, DataNode node)
getAction in interface DbAdaptergetAction in class JdbcAdapterpublic String createUniqueConstraint(DbEntity source, Collection<DbAttribute> columns)
createUniqueConstraint in interface DbAdaptercreateUniqueConstraint in class JdbcAdapterpublic String createFkConstraint(DbRelationship rel)
createFkConstraint in interface DbAdaptercreateFkConstraint in class JdbcAdapterJdbcAdapter.createFkConstraint(DbRelationship)public String createTable(DbEntity ent)
createTable in interface DbAdaptercreateTable in class JdbcAdapterpublic 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 MergerFactory mergerFactory()
mergerFactory in interface DbAdaptermergerFactory in class JdbcAdapterCopyright © 2001–2018 Apache Cayenne. All rights reserved.