@Deprecated public class OpenBaseAdapter extends JdbcAdapter
openbase.jdbc.username = test openbase.jdbc.password = secret openbase.jdbc.url = jdbc:openbase://serverhostname/cayenne openbase.jdbc.driver = com.openbase.jdbc.ObDriver
batchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler| Constructor and Description |
|---|
OpenBaseAdapter(RuntimeProperties runtimeProperties,
List<ExtendedType> defaultExtendedTypes,
List<ExtendedType> userExtendedTypes,
List<ExtendedTypeFactory> extendedTypeFactories,
ResourceLocator resourceLocator,
ValueObjectTypeRegistry valueObjectTypeRegistry)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DbAttribute |
buildAttribute(String name,
String typeName,
int type,
int size,
int scale,
boolean allowNulls)
Deprecated.
Creates and returns a DbAttribute based on supplied parameters (usually
obtained from database meta data).
|
protected void |
configureExtendedTypes(ExtendedTypeMap map)
Deprecated.
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. |
String |
createFkConstraint(DbRelationship rel)
Deprecated.
Returns a SQL string that can be used to create a foreign key constraint
for the relationship.
|
protected PkGenerator |
createPkGenerator()
Deprecated.
Creates and returns a primary key generator.
|
String |
createTable(DbEntity ent)
Deprecated.
Returns a SQL string that can be used to create database table
corresponding to
ent parameter. |
String |
getBatchTerminator()
Deprecated.
Returns word "go".
|
SQLTreeProcessor |
getSqlTreeProcessor()
Deprecated.
|
String |
tableTypeForView()
Deprecated.
Returns null, since views are not yet supported in openbase.
|
bindParameter, createEJBQLTranslatorFactory, createQuotingStrategy, createTableAppendColumn, 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, typeSupportsLength, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsGeneratedKeysForBatchInsertspublic OpenBaseAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
public SQLTreeProcessor getSqlTreeProcessor()
getSqlTreeProcessor in interface DbAdaptergetSqlTreeProcessor in class JdbcAdapterSQLTreeProcessor that can adjust SQL tree to specific database flavourprotected 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 JdbcAdapterpublic DbAttribute buildAttribute(String name, String typeName, int type, int size, int scale, boolean allowNulls)
DbAdapterbuildAttribute in interface DbAdapterbuildAttribute in class JdbcAdaptername - database column nametypeName - database specific type name, may be used as a hint to
determine the right JDBC type.type - JDBC column typesize - database column size (ignored if less than zero)scale - database column scale, i.e. the number of decimal digits
(ignored if less than zero)allowNulls - database column nullable parameterpublic String getBatchTerminator()
getBatchTerminator in interface DbAdaptergetBatchTerminator in class JdbcAdapterpublic String tableTypeForView()
tableTypeForView in interface DbAdaptertableTypeForView in class JdbcAdapterprotected PkGenerator createPkGenerator()
createPkGenerator in class JdbcAdapterpublic String createTable(DbEntity ent)
ent parameter.createTable in interface DbAdaptercreateTable in class JdbcAdapterpublic String createFkConstraint(DbRelationship rel)
createFkConstraint in interface DbAdaptercreateFkConstraint in class JdbcAdapterCopyright © 2001–2021 Apache Cayenne. All rights reserved.