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, typeSupportsLength
public 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 DbAdapter
getAction
in class JdbcAdapter
public String createUniqueConstraint(DbEntity source, Collection<DbAttribute> columns)
createUniqueConstraint
in interface DbAdapter
createUniqueConstraint
in class JdbcAdapter
public String createFkConstraint(DbRelationship rel)
createFkConstraint
in interface DbAdapter
createFkConstraint
in class JdbcAdapter
JdbcAdapter.createFkConstraint(DbRelationship)
public String createTable(DbEntity ent)
createTable
in interface DbAdapter
createTable
in class JdbcAdapter
public void createTableAppendColumn(StringBuffer sqlBuffer, DbAttribute column)
JdbcAdapter
createTableAppendColumn
in interface DbAdapter
createTableAppendColumn
in class JdbcAdapter
sqlBuffer
- the StringBuffer
to append the column type tocolumn
- the DbAttribute
defining the column to append type forpublic MergerFactory mergerFactory()
mergerFactory
in interface DbAdapter
mergerFactory
in class JdbcAdapter
Copyright © 2001–2018 Apache Cayenne. All rights reserved.