Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.dba.firebird
Class FirebirdAdapter  view FirebirdAdapter download FirebirdAdapter.java

java.lang.Object
  extended byorg.objectstyle.cayenne.dba.JdbcAdapter
      extended byorg.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
 


Field Summary
 
Fields inherited from class org.objectstyle.cayenne.dba.JdbcAdapter
extendedTypes, pkGenerator, supportsBatchUpdates, typesHandler
 
Fields inherited from interface org.objectstyle.cayenne.dba.DbAdapter
availableAdapterClassNames, DB2, FIREBIRD, HSQLDB, JDBC, MYSQL, ORACLE, POSTGRES, SYBASE
 
Constructor Summary
FirebirdAdapter()
           
 
Method Summary
protected  void configureExtendedTypes(org.objectstyle.cayenne.access.types.ExtendedTypeMap map)
          Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers.
 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.
protected  org.objectstyle.cayenne.dba.PkGenerator createPkGenerator()
          Creates and returns a primary key generator.
 java.lang.String createTable(org.objectstyle.cayenne.map.DbEntity ent)
          Returns a SQL string that can be used to create database table corresponding to ent parameter.
 java.lang.String dropTable(org.objectstyle.cayenne.map.DbEntity ent)
          Returns a SQL string to drop a table corresponding to ent DbEntity.
 
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
 

Constructor Detail

FirebirdAdapter

public FirebirdAdapter()
Method Detail

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.