|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.dba.JdbcAdapter
org.apache.cayenne.dba.openbase.OpenBaseAdapter
public class OpenBaseAdapter
DbAdapter implementation for OpenBase. Sample connection settings to use with OpenBase are shown below:
test-openbase.cayenne.adapter = org.apache.cayenne.dba.openbase.OpenBaseAdapter test-openbase.jdbc.username = test test-openbase.jdbc.password = secret test-openbase.jdbc.url = jdbc:openbase://serverhostname/cayenne test-openbase.jdbc.driver = com.openbase.jdbc.ObDriver
Field Summary |
---|
Fields inherited from class org.apache.cayenne.dba.JdbcAdapter |
---|
extendedTypes, pkGenerator, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler |
Constructor Summary | |
---|---|
OpenBaseAdapter()
|
Method Summary | |
---|---|
DbAttribute |
buildAttribute(java.lang.String name,
java.lang.String typeName,
int type,
int size,
int precision,
boolean allowNulls)
Creates and returns a DbAttribute based on supplied parameters (usually obtained from database meta data). |
protected void |
configureExtendedTypes(ExtendedTypeMap map)
Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers. |
java.lang.String |
createFkConstraint(DbRelationship rel)
Returns a SQL string that can be used to create a foreign key constraint for the relationship. |
protected PkGenerator |
createPkGenerator()
Creates and returns a primary key generator. |
java.lang.String |
createTable(DbEntity ent)
Returns a SQL string that can be used to create database table corresponding to ent parameter. |
SQLAction |
getAction(Query query,
DataNode node)
Uses special action builder to create the right action. |
java.lang.String |
getBatchTerminator()
Returns word "go". |
QualifierTranslator |
getQualifierTranslator(QueryAssembler queryAssembler)
Returns OpenBase-specific translator for queries. |
java.lang.String |
tableTypeForView()
Returns null, since views are not yet supported in openbase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenBaseAdapter()
Method Detail |
---|
public SQLAction getAction(Query query, DataNode node)
getAction
in interface DbAdapter
getAction
in class JdbcAdapter
protected void configureExtendedTypes(ExtendedTypeMap map)
JdbcAdapter
configureExtendedTypes
in class JdbcAdapter
public DbAttribute buildAttribute(java.lang.String name, java.lang.String typeName, int type, int size, int precision, boolean allowNulls)
DbAdapter
buildAttribute
in interface DbAdapter
buildAttribute
in class JdbcAdapter
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)precision
- database column precision (ignored if less than zero)allowNulls
- database column nullable parameterpublic java.lang.String getBatchTerminator()
getBatchTerminator
in interface DbAdapter
getBatchTerminator
in class JdbcAdapter
public java.lang.String tableTypeForView()
tableTypeForView
in interface DbAdapter
tableTypeForView
in class JdbcAdapter
public QualifierTranslator getQualifierTranslator(QueryAssembler queryAssembler)
getQualifierTranslator
in interface DbAdapter
getQualifierTranslator
in class JdbcAdapter
protected PkGenerator createPkGenerator()
createPkGenerator
in class JdbcAdapter
public java.lang.String createTable(DbEntity ent)
ent
parameter.
createTable
in interface DbAdapter
createTable
in class JdbcAdapter
public java.lang.String createFkConstraint(DbRelationship rel)
createFkConstraint
in interface DbAdapter
createFkConstraint
in class JdbcAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |