|
||||||||||
| 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,
List<ExtendedType> defaultExtendedTypes,
List<ExtendedType> userExtendedTypes,
List<ExtendedTypeFactory> extendedTypeFactories)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HSQLDBAdapter(RuntimeProperties runtimeProperties,
List<ExtendedType> defaultExtendedTypes,
List<ExtendedType> userExtendedTypes,
List<ExtendedTypeFactory> extendedTypeFactories)
| Method Detail |
|---|
protected String getTableName(DbEntity entity)
protected String getSchemaName(DbEntity entity)
public SQLAction getAction(Query query,
DataNode node)
getAction in interface DbAdaptergetAction in class JdbcAdapter
public 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 JdbcAdapter
public void createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
JdbcAdapter
createTableAppendColumn 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 JdbcAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||