Package org.apache.cayenne.dba.openbase
Class OpenBaseAdapter
- java.lang.Object
-
- org.apache.cayenne.dba.JdbcAdapter
-
- org.apache.cayenne.dba.openbase.OpenBaseAdapter
-
- All Implemented Interfaces:
DbAdapter
@Deprecated public class OpenBaseAdapter extends JdbcAdapter
Deprecated.since 4.2, OpenBase is pretty much obsolete and not testedDbAdapter implementation for OpenBase. Sample connection settings to use with OpenBase are shown below:openbase.jdbc.username = test openbase.jdbc.password = secret openbase.jdbc.url = jdbc:openbase://serverhostname/cayenne openbase.jdbc.driver = com.openbase.jdbc.ObDriver
- Since:
- 1.1
-
-
Field Summary
-
Fields inherited from class org.apache.cayenne.dba.JdbcAdapter
batchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
-
-
Constructor Summary
Constructors Constructor Description OpenBaseAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DbAttributebuildAttribute(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 voidconfigureExtendedTypes(ExtendedTypeMap map)Deprecated.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.StringcreateFkConstraint(DbRelationship rel)Deprecated.Returns a SQL string that can be used to create a foreign key constraint for the relationship.protected PkGeneratorcreatePkGenerator()Deprecated.Creates and returns a primary key generator.StringcreateTable(DbEntity ent)Deprecated.Returns a SQL string that can be used to create database table corresponding toentparameter.StringgetBatchTerminator()Deprecated.Returns word "go".SQLTreeProcessorgetSqlTreeProcessor()Deprecated.StringtableTypeForView()Deprecated.Returns null, since views are not yet supported in openbase.-
Methods inherited from class org.apache.cayenne.dba.JdbcAdapter
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, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cayenne.dba.DbAdapter
supportsGeneratedKeysForBatchInserts
-
-
-
-
Constructor Detail
-
OpenBaseAdapter
public OpenBaseAdapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)
Deprecated.
-
-
Method Detail
-
getSqlTreeProcessor
public SQLTreeProcessor getSqlTreeProcessor()
Deprecated.- Specified by:
getSqlTreeProcessorin interfaceDbAdapter- Overrides:
getSqlTreeProcessorin classJdbcAdapter- Returns:
SQLTreeProcessorthat can adjust SQL tree to specific database flavour- Since:
- 4.2
-
configureExtendedTypes
protected void configureExtendedTypes(ExtendedTypeMap map)
Deprecated.Description 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 classJdbcAdapter
-
buildAttribute
public DbAttribute buildAttribute(String name, String typeName, int type, int size, int scale, boolean allowNulls)
Deprecated.Description copied from interface:DbAdapterCreates and returns a DbAttribute based on supplied parameters (usually obtained from database meta data).- Specified by:
buildAttributein interfaceDbAdapter- Overrides:
buildAttributein classJdbcAdapter- Parameters:
name- 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 parameter
-
getBatchTerminator
public String getBatchTerminator()
Deprecated.Returns word "go".- Specified by:
getBatchTerminatorin interfaceDbAdapter- Overrides:
getBatchTerminatorin classJdbcAdapter
-
tableTypeForView
public String tableTypeForView()
Deprecated.Returns null, since views are not yet supported in openbase.- Specified by:
tableTypeForViewin interfaceDbAdapter- Overrides:
tableTypeForViewin classJdbcAdapter
-
createPkGenerator
protected PkGenerator createPkGenerator()
Deprecated.Creates and returns a primary key generator. Overrides superclass implementation to return an instance of OpenBasePkGenerator that uses built-in multi-server primary key generation.- Overrides:
createPkGeneratorin classJdbcAdapter
-
createTable
public String createTable(DbEntity ent)
Deprecated.Returns a SQL string that can be used to create database table corresponding toentparameter.- Specified by:
createTablein interfaceDbAdapter- Overrides:
createTablein classJdbcAdapter
-
createFkConstraint
public String createFkConstraint(DbRelationship rel)
Deprecated.Returns a SQL string that can be used to create a foreign key constraint for the relationship.- Specified by:
createFkConstraintin interfaceDbAdapter- Overrides:
createFkConstraintin classJdbcAdapter
-
-