org.apache.cayenne.dba.frontbase
Class FrontBaseAdapter

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

public class FrontBaseAdapter
extends JdbcAdapter

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

          fb.cayenne.adapter = org.apache.cayenne.dba.frontbase.FrontBaseAdapter
          fb.jdbc.username = _system
          fb.jdbc.password = secret
          fb.jdbc.url = jdbc:FrontBase://localhost/cayenne/
          fb.jdbc.driver = jdbc.FrontBase.FBJDriver
 

Since:
1.2
Author:
Andrus Adamchik

Field Summary
 
Fields inherited from class org.apache.cayenne.dba.JdbcAdapter
extendedTypes, pkGenerator, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
 
Constructor Summary
FrontBaseAdapter()
           
 
Method Summary
protected  void configureExtendedTypes(ExtendedTypeMap map)
          Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers.
protected  PkGenerator createPkGenerator()
          Creates and returns a primary key generator.
 java.lang.String createTable(DbEntity ent)
          Customizes table creating procedure for FrontBase.
 java.lang.String dropTable(DbEntity ent)
          Adds the CASCADE option to the DROP TABLE clause.
 SQLAction getAction(Query query, DataNode node)
          Uses special action builder to create the right action.
 java.lang.String tableTypeForTable()
          Returns the name of the table type (as returned by DatabaseMetaData.getTableTypes) for a simple user table.
 
Methods inherited from class org.apache.cayenne.dba.JdbcAdapter
bindParameter, buildAttribute, createDataNode, createFkConstraint, createTableAppendColumn, createTableAppendPKClause, createUniqueConstraint, externalTypesForJdbcType, findAdapterResource, getBatchTerminator, getExtendedTypes, getPkGenerator, getQualifierTranslator, getQueryTranslator, queryTranslatorClass, setPkGenerator, setSupportsBatchUpdates, setSupportsFkConstraints, setSupportsGeneratedKeys, setSupportsUniqueConstraints, shouldRunBatchQuery, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrontBaseAdapter

public FrontBaseAdapter()
Method Detail

getAction

public SQLAction getAction(Query query,
                           DataNode node)
Uses special action builder to create the right action.

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

tableTypeForTable

public java.lang.String tableTypeForTable()
Description copied from interface: DbAdapter
Returns the name of the table type (as returned by DatabaseMetaData.getTableTypes) for a simple user table.

Specified by:
tableTypeForTable in interface DbAdapter
Overrides:
tableTypeForTable 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

createTable

public java.lang.String createTable(DbEntity ent)
Customizes table creating procedure for FrontBase.

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

dropTable

public java.lang.String dropTable(DbEntity ent)
Adds the CASCADE option to the DROP TABLE clause.

Specified by:
dropTable in interface DbAdapter
Overrides:
dropTable 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


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