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".
|
SQLTreeProcessor |
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, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsGeneratedKeysForBatchInserts
public SybaseAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
protected QuotingStrategy createQuotingStrategy()
createQuotingStrategy
in class JdbcAdapter
protected EJBQLTranslatorFactory createEJBQLTranslatorFactory()
JdbcAdapter
EJBQLTranslatorFactory
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 JdbcAdapter
public SQLTreeProcessor getSqlTreeProcessor()
getSqlTreeProcessor
in interface DbAdapter
getSqlTreeProcessor
in class JdbcAdapter
SQLTreeProcessor
that can adjust SQL tree to specific database flavourpublic String getBatchTerminator()
getBatchTerminator
in interface DbAdapter
getBatchTerminator
in class JdbcAdapter
protected void configureExtendedTypes(ExtendedTypeMap map)
configureExtendedTypes
in class JdbcAdapter
protected PkGenerator createPkGenerator()
createPkGenerator
in class JdbcAdapter
public void bindParameter(PreparedStatement statement, ParameterBinding binding) throws Exception
DbAdapter
bindParameter
in interface DbAdapter
bindParameter
in class JdbcAdapter
Exception
public void createTableAppendColumn(StringBuffer sqlBuffer, DbAttribute column)
createTableAppendColumn
in interface DbAdapter
createTableAppendColumn
in class JdbcAdapter
sqlBuffer
- the StringBuffer
to append the column type tocolumn
- the DbAttribute
defining the column to append type forCopyright © 2001–2021 Apache Cayenne. All rights reserved.