|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.dba.JdbcAdapter
org.apache.cayenne.dba.ingres.IngresAdapter
public class IngresAdapter
DbAdapter implementation for Ingres. Sample connection settings to use with Ingres are shown below:
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 java.lang.String |
TRIM_FUNCTION
|
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 | |
---|---|
IngresAdapter(RuntimeProperties runtimeProperties,
java.util.List<ExtendedType> defaultExtendedTypes,
java.util.List<ExtendedType> userExtendedTypes,
java.util.List<ExtendedTypeFactory> extendedTypeFactories)
|
Method Summary | |
---|---|
void |
bindParameter(java.sql.PreparedStatement statement,
java.lang.Object object,
int pos,
int sqlType,
int scale)
Binds an object value to PreparedStatement's numbered parameter. |
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. |
void |
createTableAppendColumn(java.lang.StringBuffer buf,
DbAttribute at)
Appends SQL for column creation to CREATE TABLE buffer. |
SQLAction |
getAction(Query query,
DataNode node)
Uses JdbcActionBuilder to create the right action. |
QualifierTranslator |
getQualifierTranslator(QueryAssembler queryAssembler)
Creates and returns a default implementation of a qualifier translator. |
MergerFactory |
mergerFactory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TRIM_FUNCTION
Constructor Detail |
---|
public IngresAdapter(RuntimeProperties runtimeProperties, java.util.List<ExtendedType> defaultExtendedTypes, java.util.List<ExtendedType> userExtendedTypes, java.util.List<ExtendedTypeFactory> extendedTypeFactories)
Method Detail |
---|
public QualifierTranslator getQualifierTranslator(QueryAssembler queryAssembler)
JdbcAdapter
getQualifierTranslator
in interface DbAdapter
getQualifierTranslator
in class JdbcAdapter
public SQLAction getAction(Query query, DataNode node)
JdbcAdapter
getAction
in interface DbAdapter
getAction
in class JdbcAdapter
protected void configureExtendedTypes(ExtendedTypeMap map)
JdbcAdapter
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.
configureExtendedTypes
in class JdbcAdapter
protected PkGenerator createPkGenerator()
JdbcAdapter
createPkGenerator
in class JdbcAdapter
JdbcAdapter.createPkGenerator()
public void bindParameter(java.sql.PreparedStatement statement, java.lang.Object object, int pos, int sqlType, int scale) throws java.sql.SQLException, java.lang.Exception
DbAdapter
bindParameter
in interface DbAdapter
bindParameter
in class JdbcAdapter
java.sql.SQLException
java.lang.Exception
public MergerFactory mergerFactory()
mergerFactory
in interface DbAdapter
mergerFactory
in class JdbcAdapter
public void createTableAppendColumn(java.lang.StringBuffer buf, DbAttribute at)
JdbcAdapter
createTableAppendColumn
in interface DbAdapter
createTableAppendColumn
in class JdbcAdapter
buf
- the StringBuffer
to append the column type toat
- the DbAttribute
defining the column to append type for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |