java.lang.Object
org.objectstyle.cayenne.dba.JdbcAdapter
org.objectstyle.cayenne.dba.firebird.FirebirdAdapter
- All Implemented Interfaces:
- org.objectstyle.cayenne.dba.DbAdapter
- public class FirebirdAdapter
- extends org.objectstyle.cayenne.dba.JdbcAdapter
DbAdapter implementation for Firebird RDBMS.
Sample connection
settings to use with Firebird are shown below:
test-firebird.cayenne.adapter = org.objectstyle.cayenne.dba.firebird.FirebirdAdapter
test-firebird.jdbc.username = sysdba
test-firebird.jdbc.password = masterkey
test-firebird.jdbc.url = jdbc:firebirdsql:[host[/port]/]
test-firebird.jdbc.driver = org.firebirdsql.jdbc.FBDriver
| Methods inherited from class org.objectstyle.cayenne.dba.JdbcAdapter |
bindParameter, buildAttribute, createDataNode, externalTypesForJdbcType, getExtendedTypes, getPkGenerator, getQualifierTranslator, getQueryTranslator, queryTranslatorClass, setSupportsBatchUpdates, shouldRunBatchQuery, supportsBatchUpdates, supportsFkConstraints, tableTypeForTable, tableTypeForView |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FirebirdAdapter
public FirebirdAdapter()
createTable
public java.lang.String createTable(org.objectstyle.cayenne.map.DbEntity ent)
- Description copied from class:
org.objectstyle.cayenne.dba.JdbcAdapter
- Returns a SQL string that can be used to create database table
corresponding to
ent parameter.
createFkConstraint
public java.lang.String createFkConstraint(org.objectstyle.cayenne.map.DbRelationship rel)
- Returns a SQL string that can be used to create
a foreign key constraint for the relationship.
dropTable
public java.lang.String dropTable(org.objectstyle.cayenne.map.DbEntity ent)
- Description copied from class:
org.objectstyle.cayenne.dba.JdbcAdapter
- Returns a SQL string to drop a table corresponding
to
ent DbEntity.
configureExtendedTypes
protected void configureExtendedTypes(org.objectstyle.cayenne.access.types.ExtendedTypeMap map)
- Description copied from class:
org.objectstyle.cayenne.dba.JdbcAdapter
- Installs appropriate ExtendedTypes as converters for passing values
between JDBC and Java layers. Called from default constructor.
createPkGenerator
protected org.objectstyle.cayenne.dba.PkGenerator createPkGenerator()
- Description copied from class:
org.objectstyle.cayenne.dba.JdbcAdapter
- Creates and returns a primary key generator. This factory
method should be overriden by JdbcAdapter subclasses to
provide custom implementations of PKGenerator.