org.apache.cayenne.dba.ingres
Class IngresAdapter

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

public class IngresAdapter
extends JdbcAdapter

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

  ingres.cayenne.adapter = org.apache.cayenne.dba.ingres.IngresAdapter
  ingres.jdbc.username = test
  ingres.jdbc.password = secret
  ingres.jdbc.url = jdbc:ingres://serverhostname:II7/cayenne
  ingres.jdbc.driver = ca.ingres.jdbc.IngresDriver
 


Field Summary
static String TRIM_FUNCTION
           
 
Fields inherited from class org.apache.cayenne.dba.JdbcAdapter
ejbqlTranslatorFactory, extendedTypes, identifiersEndQuote, identifiersStartQuote, pkGenerator, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
 
Constructor Summary
IngresAdapter()
           
 
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)
          Returns a SQL string that can be used to create database table corresponding to ent parameter.
 QualifierTranslator getQualifierTranslator(QueryAssembler queryAssembler)
          Creates and returns a default implementation of a qualifier translator.
 
Methods inherited from class org.apache.cayenne.dba.JdbcAdapter
bindParameter, buildAttribute, createEJBQLTranslatorFactory, createFkConstraint, createTableAppendColumn, createTableAppendPKClause, createUniqueConstraint, dropTable, dropTableStatements, externalTypesForJdbcType, findAdapterResource, findResource, getAction, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getIdentifiersEndQuote, getIdentifiersStartQuote, getPkGenerator, getQuotingStrategy, initIdentifiersQuotes, mergerFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsFkConstraints, setSupportsGeneratedKeys, setSupportsUniqueConstraints, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRIM_FUNCTION

public static final String TRIM_FUNCTION
See Also:
Constant Field Values
Constructor Detail

IngresAdapter

public IngresAdapter()
Method Detail

getQualifierTranslator

public QualifierTranslator getQualifierTranslator(QueryAssembler queryAssembler)
Description copied from class: JdbcAdapter
Creates and returns a default implementation of a qualifier translator.

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

createTable

public String createTable(DbEntity ent)
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

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-2011 Apache Cayenne. All Rights Reserved.