|
||||||||||
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.cayenne.adapter = org.apache.cayenne.dba.hsqldb.HSQLDBAdapter 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 |
---|
extendedTypes, pkGenerator, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler |
Constructor Summary | |
---|---|
HSQLDBAdapter()
|
Method Summary | |
---|---|
protected void |
configureExtendedTypes(ExtendedTypeMap map)
Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers. |
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". |
String |
createUniqueConstraint(DbEntity source,
Collection 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HSQLDBAdapter()
Method Detail |
---|
protected void configureExtendedTypes(ExtendedTypeMap map)
JdbcAdapter
configureExtendedTypes
in class JdbcAdapter
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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |