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.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
batchQueryBuilderFactory, caseInsensitiveCollations, CI_PROPERTY, ejbqlTranslatorFactory, extendedTypes, identifiersEndQuote, identifiersStartQuote, logger, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
 
Constructor Summary
FrontBaseAdapter(RuntimeProperties runtimeProperties, java.util.List<ExtendedType> defaultExtendedTypes, java.util.List<ExtendedType> userExtendedTypes, java.util.List<ExtendedTypeFactory> extendedTypeFactories)
           
 
Method Summary
protected  void configureExtendedTypes(ExtendedTypeMap map)
          Called from JdbcAdapter.initExtendedTypes(List, List, List) to load adapter-specific types into the ExtendedTypeMap right after the default types are loaded, but before the DI overrides are.
protected  PkGenerator createPkGenerator()
          Creates and returns a primary key generator.
 java.lang.String createTable(DbEntity ent)
          Customizes table creating procedure for FrontBase.
 java.util.Collection<java.lang.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.
 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, createEJBQLTranslatorFactory, createFkConstraint, createTableAppendColumn, createTableAppendPKClause, createUniqueConstraint, externalTypesForJdbcType, findResource, getBatchQueryBuilderFactory, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getIdentifiersEndQuote, getIdentifiersStartQuote, getJdbcEventLogger, getPkGenerator, getQualifierTranslator, getQuotingStrategy, initExtendedTypes, initIdentifiersQuotes, mergerFactory, setBatchQueryBuilderFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, supportsBatchUpdates, 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(RuntimeProperties runtimeProperties,
                        java.util.List<ExtendedType> defaultExtendedTypes,
                        java.util.List<ExtendedType> userExtendedTypes,
                        java.util.List<ExtendedTypeFactory> extendedTypeFactories)
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
Called from JdbcAdapter.initExtendedTypes(List, List, List) to load adapter-specific types into the ExtendedTypeMap right after the default types are loaded, but before the DI overrides are. This method has specific implementations in JdbcAdapter subclasses.

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

dropTableStatements

public java.util.Collection<java.lang.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-2012 Apache Cayenne. All Rights Reserved.