org.apache.cayenne.dba.firebird
Class FirebirdAdapter

java.lang.Object
  extended by org.apache.cayenne.dba.JdbcAdapter
      extended by org.apache.cayenne.dba.firebird.FirebirdAdapter
All Implemented Interfaces:
DbAdapter

public class FirebirdAdapter
extends JdbcAdapter

DbAdapter implementation for Firebird RDBMS. Sample connection settings to use with Firebird are shown below:

 test-firebird.cayenne.adapter = org.apache.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
 

Author:
Heiko Wenzel

Field Summary
 
Fields inherited from class org.apache.cayenne.dba.JdbcAdapter
extendedTypes, pkGenerator, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
 
Constructor Summary
FirebirdAdapter()
           
 
Method Summary
protected  void configureExtendedTypes(ExtendedTypeMap map)
          Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers.
 java.lang.String createFkConstraint(DbRelationship rel)
          Returns a SQL string that can be used to create a foreign key constraint for the relationship.
protected  PkGenerator createPkGenerator()
          Creates and returns a primary key generator.
 java.lang.String createTable(DbEntity ent)
          Returns a SQL string that can be used to create database table corresponding to ent parameter.
 java.lang.String dropTable(DbEntity ent)
          Returns a SQL string to drop a table corresponding to ent DbEntity.
 
Methods inherited from class org.apache.cayenne.dba.JdbcAdapter
bindParameter, buildAttribute, createDataNode, createTableAppendColumn, createTableAppendPKClause, createUniqueConstraint, externalTypesForJdbcType, findAdapterResource, getAction, getBatchTerminator, getExtendedTypes, getPkGenerator, getQualifierTranslator, getQueryTranslator, queryTranslatorClass, setPkGenerator, setSupportsBatchUpdates, setSupportsFkConstraints, setSupportsGeneratedKeys, setSupportsUniqueConstraints, shouldRunBatchQuery, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirebirdAdapter

public FirebirdAdapter()
Method Detail

createTable

public java.lang.String createTable(DbEntity ent)
Description copied from class: JdbcAdapter
Returns a SQL string that can be used to create database table corresponding to ent parameter.

Specified by:
createTable in interface DbAdapter
Overrides:
createTable in class JdbcAdapter

createFkConstraint

public java.lang.String createFkConstraint(DbRelationship rel)
Returns a SQL string that can be used to create a foreign key constraint for the relationship.

Specified by:
createFkConstraint in interface DbAdapter
Overrides:
createFkConstraint in class JdbcAdapter

dropTable

public java.lang.String dropTable(DbEntity ent)
Description copied from class: JdbcAdapter
Returns a SQL string to drop a table corresponding to ent DbEntity.

Specified by:
dropTable in interface DbAdapter
Overrides:
dropTable in class JdbcAdapter

configureExtendedTypes

protected void configureExtendedTypes(ExtendedTypeMap map)
Description copied from class: JdbcAdapter
Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers. Called from default constructor.

Overrides:
configureExtendedTypes in class JdbcAdapter

createPkGenerator

protected PkGenerator createPkGenerator()
Description copied from class: JdbcAdapter
Creates and returns a primary key generator. This factory method should be overriden by JdbcAdapter subclasses to provide custom implementations of PKGenerator.

Overrides:
createPkGenerator in class JdbcAdapter
See Also:
JdbcAdapter.createPkGenerator()


Copyright © 2001-2006 Apache.org All Rights Reserved.