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.
|
QualifierTranslator |
getQualifierTranslator(QueryAssembler queryAssembler)
Creates and returns a default implementation of a qualifier translator.
|
SelectTranslator |
getSelectTranslator(SelectQuery<?> query,
EntityResolver entityResolver)
Returns a SelectTranslator that works with the adapter target database.
|
buildAttribute, createEJBQLTranslatorFactory, createFkConstraint, createQuotingStrategy, createTable, createTableAppendPKClause, createUniqueConstraint, dropTableStatements, externalTypesForJdbcType, findResource, getBatchQueryBuilderFactory, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQuotingStrategy, getQuotingStrategy, getType, initExtendedTypes, setBatchQueryBuilderFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, unwrappublic static final String TRIM_FUNCTION
public IngresAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
public SelectTranslator getSelectTranslator(SelectQuery<?> query, EntityResolver entityResolver)
DbAdaptergetSelectTranslator in interface DbAdaptergetSelectTranslator in class JdbcAdapterpublic QualifierTranslator getQualifierTranslator(QueryAssembler queryAssembler)
JdbcAdaptergetQualifierTranslator in interface DbAdaptergetQualifierTranslator in class JdbcAdapterpublic SQLAction getAction(Query query, DataNode node)
JdbcAdaptergetAction in interface DbAdaptergetAction in class JdbcAdapterprotected void configureExtendedTypes(ExtendedTypeMap map)
JdbcAdapterJdbcAdapter.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 JdbcAdapterprotected PkGenerator createPkGenerator()
JdbcAdaptercreatePkGenerator in class JdbcAdapterJdbcAdapter.createPkGenerator()public void bindParameter(PreparedStatement statement, ParameterBinding binding) throws SQLException, Exception
DbAdapterbindParameter in interface DbAdapterbindParameter in class JdbcAdapterSQLExceptionExceptionpublic void createTableAppendColumn(StringBuffer buf, DbAttribute at)
JdbcAdaptercreateTableAppendColumn in interface DbAdaptercreateTableAppendColumn in class JdbcAdapterbuf - the StringBuffer to append the column type toat - the DbAttribute defining the column to append type forCopyright © 2001–2023 Apache Cayenne. All rights reserved.