public class IngresAdapter extends JdbcAdapter
ingres.jdbc.username = test ingres.jdbc.password = secret ingres.jdbc.url = jdbc:ingres://serverhostname:II7/cayenne ingres.jdbc.driver = ca.ingres.jdbc.IngresDriver
Modifier and Type | Field and Description |
---|---|
static String |
TRIM_FUNCTION |
batchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
Constructor and Description |
---|
IngresAdapter(RuntimeProperties runtimeProperties,
List<ExtendedType> defaultExtendedTypes,
List<ExtendedType> userExtendedTypes,
List<ExtendedTypeFactory> extendedTypeFactories,
ResourceLocator resourceLocator,
ValueObjectTypeRegistry valueObjectTypeRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
bindParameter(PreparedStatement statement,
ParameterBinding binding)
Binds an object value to PreparedStatement's parameter.
|
protected void |
configureExtendedTypes(ExtendedTypeMap map)
Called from
JdbcAdapter.initExtendedTypes(List, List, List, ValueObjectTypeRegistry) 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(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.
|
SQLTreeProcessor |
getSqlTreeProcessor() |
buildAttribute, createEJBQLTranslatorFactory, createFkConstraint, createQuotingStrategy, createTable, createTableAppendPKClause, createUniqueConstraint, dropTableStatements, externalTypesForJdbcType, findResource, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQuotingStrategy, getSelectTranslator, getSelectTranslator, getSystemCatalogs, getSystemSchemas, getType, initExtendedTypes, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsGeneratedKeysForBatchInserts
public static final String TRIM_FUNCTION
public IngresAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
public SQLTreeProcessor getSqlTreeProcessor()
getSqlTreeProcessor
in interface DbAdapter
getSqlTreeProcessor
in class JdbcAdapter
SQLTreeProcessor
that can adjust SQL tree to specific database flavourpublic 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, ValueObjectTypeRegistry)
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(PreparedStatement statement, ParameterBinding binding) throws SQLException, Exception
DbAdapter
bindParameter
in interface DbAdapter
bindParameter
in class JdbcAdapter
SQLException
Exception
public void createTableAppendColumn(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 forCopyright © 2001–2021 Apache Cayenne. All rights reserved.