|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.dba.JdbcAdapter
org.apache.cayenne.dba.hsqldb.HSQLDBAdapter
public class HSQLDBAdapter
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 Summary |
---|
Fields inherited from class org.apache.cayenne.dba.JdbcAdapter |
---|
batchQueryBuilderFactory, caseInsensitiveCollations, CI_PROPERTY, ejbqlTranslatorFactory, extendedTypes, identifiersEndQuote, identifiersStartQuote, logger, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler |
Constructor Summary | |
---|---|
HSQLDBAdapter(RuntimeProperties runtimeProperties,
java.util.List<ExtendedType> defaultExtendedTypes,
java.util.List<ExtendedType> userExtendedTypes,
java.util.List<ExtendedTypeFactory> extendedTypeFactories)
|
Method Summary | |
---|---|
java.lang.String |
createFkConstraint(DbRelationship rel)
Adds an ADD CONSTRAINT clause to a relationship constraint. |
java.lang.String |
createTable(DbEntity ent)
Uses "CREATE CACHED TABLE" instead of "CREATE TABLE". |
void |
createTableAppendColumn(java.lang.StringBuffer sqlBuffer,
DbAttribute column)
Appends SQL for column creation to CREATE TABLE buffer. |
java.lang.String |
createUniqueConstraint(DbEntity source,
java.util.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 java.lang.String |
getSchemaName(DbEntity entity)
Generate fully-qualified name for 1.8 and on. |
protected java.lang.String |
getTableName(DbEntity entity)
Generate fully-qualified name for 1.8 and on. |
MergerFactory |
mergerFactory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HSQLDBAdapter(RuntimeProperties runtimeProperties, java.util.List<ExtendedType> defaultExtendedTypes, java.util.List<ExtendedType> userExtendedTypes, java.util.List<ExtendedTypeFactory> extendedTypeFactories)
Method Detail |
---|
protected java.lang.String getTableName(DbEntity entity)
protected java.lang.String getSchemaName(DbEntity entity)
public SQLAction getAction(Query query, DataNode node)
getAction
in interface DbAdapter
getAction
in class JdbcAdapter
public java.lang.String createUniqueConstraint(DbEntity source, java.util.Collection<DbAttribute> columns)
createUniqueConstraint
in interface DbAdapter
createUniqueConstraint
in class JdbcAdapter
public java.lang.String createFkConstraint(DbRelationship rel)
createFkConstraint
in interface DbAdapter
createFkConstraint
in class JdbcAdapter
JdbcAdapter.createFkConstraint(DbRelationship)
public java.lang.String createTable(DbEntity ent)
createTable
in interface DbAdapter
createTable
in class JdbcAdapter
public void createTableAppendColumn(java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |