public class SybaseAdapter extends JdbcAdapter
batchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler| Constructor and Description |
|---|
SybaseAdapter(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)
Installs appropriate ExtendedTypes as converters for passing values
between JDBC and Java layers.
|
protected EJBQLTranslatorFactory |
createEJBQLTranslatorFactory()
Creates and returns an
EJBQLTranslatorFactory used to generate
visitors for EJBQL to SQL translations. |
protected PkGenerator |
createPkGenerator()
Creates and returns a primary key generator.
|
protected QuotingStrategy |
createQuotingStrategy() |
void |
createTableAppendColumn(StringBuffer sqlBuffer,
DbAttribute column)
Overrides super implementation to correctly set up identity columns.
|
String |
getBatchTerminator()
Returns word "go".
|
Function<Node,Node> |
getSqlTreeProcessor() |
buildAttribute, createFkConstraint, createTable, createTableAppendPKClause, createUniqueConstraint, dropTableStatements, externalTypesForJdbcType, findResource, getAction, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQuotingStrategy, getSelectTranslator, getSelectTranslator, getSystemCatalogs, getSystemSchemas, getType, initExtendedTypes, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsGeneratedKeysForBatchInsertspublic SybaseAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
protected QuotingStrategy createQuotingStrategy()
createQuotingStrategy in class JdbcAdapterprotected EJBQLTranslatorFactory createEJBQLTranslatorFactory()
JdbcAdapterEJBQLTranslatorFactory used to generate
visitors for EJBQL to SQL translations. This method should be overriden
by subclasses that need to customize EJBQL generation.createEJBQLTranslatorFactory in class JdbcAdapterpublic Function<Node,Node> getSqlTreeProcessor()
getSqlTreeProcessor in interface DbAdaptergetSqlTreeProcessor in class JdbcAdapterFunction that can adjust SQL tree to specific database flavourpublic String getBatchTerminator()
getBatchTerminator in interface DbAdaptergetBatchTerminator in class JdbcAdapterprotected void configureExtendedTypes(ExtendedTypeMap map)
configureExtendedTypes in class JdbcAdapterprotected PkGenerator createPkGenerator()
createPkGenerator in class JdbcAdapterpublic void bindParameter(PreparedStatement statement, ParameterBinding binding) throws Exception
DbAdapterbindParameter in interface DbAdapterbindParameter in class JdbcAdapterExceptionpublic void createTableAppendColumn(StringBuffer sqlBuffer, DbAttribute column)
createTableAppendColumn in interface DbAdaptercreateTableAppendColumn in class JdbcAdaptersqlBuffer - the StringBuffer to append the column type tocolumn - the DbAttribute defining the column to append type forCopyright © 2001–2020 Apache Cayenne. All rights reserved.