Package org.apache.cayenne.dba.ingres
Class IngresAdapter
java.lang.Object
org.apache.cayenne.dba.JdbcAdapter
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.jdbc.username = test ingres.jdbc.password = secret ingres.jdbc.url = jdbc:ingres://serverhostname:II7/cayenne ingres.jdbc.driver = ca.ingres.jdbc.IngresDriver
- 
Field SummaryFields Modifier and Type Field Description static StringTRIM_FUNCTIONFields inherited from class org.apache.cayenne.dba.JdbcAdapterbatchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
- 
Constructor SummaryConstructors Constructor Description IngresAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
- 
Method SummaryModifier and Type Method Description voidbindParameter(PreparedStatement statement, ParameterBinding binding)Binds an object value to PreparedStatement's parameter.protected voidconfigureExtendedTypes(ExtendedTypeMap map)Called fromJdbcAdapter.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 PkGeneratorcreatePkGenerator()Creates and returns a primary key generator.voidcreateTableAppendColumn(StringBuffer buf, DbAttribute at)Appends SQL for column creation to CREATE TABLE buffer.SQLActiongetAction(Query query, DataNode node)Uses JdbcActionBuilder to create the right action.QualifierTranslatorgetQualifierTranslator(QueryAssembler queryAssembler)Creates and returns a default implementation of a qualifier translator.SelectTranslatorgetSelectTranslator(SelectQuery<?> query, EntityResolver entityResolver)Returns a SelectTranslator that works with the adapter target database.Methods inherited from class org.apache.cayenne.dba.JdbcAdapterbuildAttribute, createEJBQLTranslatorFactory, createFkConstraint, createQuotingStrategy, createTable, createTableAppendPKClause, createUniqueConstraint, dropTableStatements, externalTypesForJdbcType, findResource, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQuotingStrategy, getSystemCatalogs, getSystemSchemas, getType, initExtendedTypes, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, unwrap
- 
Field Details- 
TRIM_FUNCTION- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
IngresAdapterpublic IngresAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
 
- 
- 
Method Details- 
getSelectTranslatorDescription copied from interface:DbAdapterReturns a SelectTranslator that works with the adapter target database.- Specified by:
- getSelectTranslatorin interface- DbAdapter
- Overrides:
- getSelectTranslatorin class- JdbcAdapter
- Since:
- 4.0
 
- 
getQualifierTranslatorDescription copied from class:JdbcAdapterCreates and returns a default implementation of a qualifier translator.- Specified by:
- getQualifierTranslatorin interface- DbAdapter
- Overrides:
- getQualifierTranslatorin class- JdbcAdapter
 
- 
getActionDescription copied from class:JdbcAdapterUses JdbcActionBuilder to create the right action.- Specified by:
- getActionin interface- DbAdapter
- Overrides:
- getActionin class- JdbcAdapter
 
- 
configureExtendedTypesDescription copied from class:JdbcAdapterCalled fromJdbcAdapter.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.- Overrides:
- configureExtendedTypesin class- JdbcAdapter
 
- 
createPkGeneratorDescription copied from class:JdbcAdapterCreates and returns a primary key generator. This factory method should be overriden by JdbcAdapter subclasses to provide custom implementations of PKGenerator.- Overrides:
- createPkGeneratorin class- JdbcAdapter
- See Also:
- JdbcAdapter.createPkGenerator()
 
- 
bindParameterpublic void bindParameter(PreparedStatement statement, ParameterBinding binding) throws SQLException, ExceptionDescription copied from interface:DbAdapterBinds an object value to PreparedStatement's parameter.- Specified by:
- bindParameterin interface- DbAdapter
- Overrides:
- bindParameterin class- JdbcAdapter
- Throws:
- SQLException
- Exception
 
- 
createTableAppendColumnDescription copied from class:JdbcAdapterAppends SQL for column creation to CREATE TABLE buffer.- Specified by:
- createTableAppendColumnin interface- DbAdapter
- Overrides:
- createTableAppendColumnin class- JdbcAdapter
- Parameters:
- buf- the- StringBufferto append the column type to
- at- the- DbAttributedefining the column to append type for
 
 
-