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

Field Summary
 
Fields inherited from class org.apache.cayenne.dba.JdbcAdapter
ejbqlTranslatorFactory, extendedTypes, identifiersEndQuote, identifiersStartQuote, 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.
 String createTable(DbEntity ent)
          Customizes table creating procedure for FrontBase.
 Collection<String> dropTableStatements(DbEntity table)
          Adds the CASCADE option to the DROP TABLE clause.
 SQLAction getAction(Query query, DataNode node)
          Uses special action builder to create the right action.
 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, createEJBQLTranslatorFactory, createFkConstraint, createTableAppendColumn, createTableAppendPKClause, createUniqueConstraint, dropTable, externalTypesForJdbcType, findAdapterResource, findResource, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getIdentifiersEndQuote, getIdentifiersStartQuote, getPkGenerator, getQualifierTranslator, getQuotingStrategy, initIdentifiersQuotes, mergerFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsFkConstraints, setSupportsGeneratedKeys, setSupportsUniqueConstraints, 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 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 String createTable(DbEntity ent)
Customizes table creating procedure for FrontBase.

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

dropTableStatements

public Collection<String> dropTableStatements(DbEntity table)
Adds the CASCADE option to the DROP TABLE clause.

Specified by:
dropTableStatements in interface DbAdapter
Overrides:
dropTableStatements 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-2011 Apache Cayenne. All Rights Reserved.