|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatastoreAdapter
Definition of a datastore adapter.
| Field Summary | |
|---|---|
static java.lang.String |
ANALYSIS_METHODS
Accessor for whether the SQL extensions CUBE, ROLLUP are supported. |
static java.lang.String |
BIT_IS_REALLY_BOOLEAN
Whether "Types.BIT" is really mapped as BOOLEAN. |
static java.lang.String |
BOOLEAN_COMPARISON
Whether we support Boolean comparisons. |
static java.lang.String |
CATALOGS_IN_TABLE_DEFINITIONS
Whether this datastore supports the use of the catalog name in ORM table definitions (DDL). |
static java.lang.String |
ESCAPE_EXPRESSION_IN_LIKE_PREDICATE
|
static java.lang.String |
IDENTIFIERS_LOWERCASE
|
static java.lang.String |
IDENTIFIERS_LOWERCASE_QUOTED
|
static java.lang.String |
IDENTIFIERS_MIXEDCASE
|
static java.lang.String |
IDENTIFIERS_MIXEDCASE_QUOTED
|
static java.lang.String |
IDENTIFIERS_MIXEDCASE_QUOTED_SENSITIVE
|
static java.lang.String |
IDENTIFIERS_MIXEDCASE_SENSITIVE
|
static java.lang.String |
IDENTIFIERS_UPPERCASE
|
static java.lang.String |
IDENTIFIERS_UPPERCASE_QUOTED
|
static java.lang.String |
IDENTITY_COLUMNS
Whether this datastore adapter support identity fields. |
static java.lang.String |
PROJECTION_IN_TABLE_REFERENCE_JOINS
Whether this datastore supports "SELECT a.* FROM (SELECT * FROM TBL1 INNER JOIN TBL2 ON tbl1.x = tbl2.y ) a" If the database does not support the SQL statement generated is like "SELECT a.* FROM (TBL1 INNER JOIN TBL2 ON tbl1.x = tbl2.y ) a" |
static java.lang.String |
SCHEMAS_IN_TABLE_DEFINITIONS
Whether this datastore supports the use of the schema name in ORM table definitions (DDL). |
static java.lang.String |
SEQUENCES
Whether we support sequences. |
| Method Summary | |
|---|---|
long |
getAdapterTime(java.sql.Timestamp time)
Utility to return the adapter time in case there are rounding issues with millisecs etc. |
java.lang.String |
getCatalogSeparator()
Accessor for the catalog separator (string to separate the catalog/schema and the identifier). |
int |
getDatastoreIdentifierMaxLength(IdentifierType identifierType)
Method to return the maximum length of a datastore identifier of the specified type. |
int |
getDatastoreMajorVersion()
Accessor for the datastore major version number. |
int |
getDatastoreMinorVersion()
Accessor for the datastore minor version number. |
java.lang.String |
getIdentifierQuoteString()
Accessor for the quote string to use when quoting identifiers. |
MappingManager |
getMappingManager(MappedStoreManager storeMgr)
Accessor for a Mapping Manager suitable for use with this datastore adapter. |
int |
getMaxForeignKeys()
Accessor for the maximum foreign keys by table permitted in this datastore. |
int |
getMaxIndexes()
Accessor for the maximum indexes by table permitted in this datastore. |
java.util.Collection<java.lang.String> |
getSupportedOptions()
Accessor for the options that are supported by this datastore adapter and the underlying datastore. |
java.lang.String |
getVendorID()
Accessor for the Vendor ID for this datastore. |
void |
initialiseDatastore(java.lang.Object conn)
Creates the auxiliary functions/procedures in the datastore |
void |
initialiseTypes(StoreSchemaHandler handler,
ManagedConnection mconn)
Initialise the types for this datastore. |
boolean |
isIdentityFieldDataType(java.lang.String columnDef)
Verifies if the given columnDef is an identity field type for the datastore. |
boolean |
isReservedKeyword(java.lang.String word)
Method to check if a word is reserved for this datastore. |
void |
removeUnsupportedMappings(StoreSchemaHandler handler,
ManagedConnection mconn)
Remove all mappings from the mapping manager that don't have a datastore type initialised. |
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
Set any properties controlling how the adapter is configured. |
boolean |
supportsOption(java.lang.String option)
Accessor for whether the supplied option is supported. |
boolean |
supportsQueryFetchSize(int size)
Whether the datastore will support setting the query fetch size to the supplied value. |
java.lang.String |
toString()
Method to return this object as a string. |
| Field Detail |
|---|
static final java.lang.String IDENTITY_COLUMNS
static final java.lang.String SEQUENCES
static final java.lang.String BIT_IS_REALLY_BOOLEAN
static final java.lang.String BOOLEAN_COMPARISON
static final java.lang.String ESCAPE_EXPRESSION_IN_LIKE_PREDICATE
static final java.lang.String PROJECTION_IN_TABLE_REFERENCE_JOINS
static final java.lang.String ANALYSIS_METHODS
static final java.lang.String CATALOGS_IN_TABLE_DEFINITIONS
static final java.lang.String SCHEMAS_IN_TABLE_DEFINITIONS
static final java.lang.String IDENTIFIERS_LOWERCASE
static final java.lang.String IDENTIFIERS_MIXEDCASE
static final java.lang.String IDENTIFIERS_UPPERCASE
static final java.lang.String IDENTIFIERS_LOWERCASE_QUOTED
static final java.lang.String IDENTIFIERS_MIXEDCASE_QUOTED
static final java.lang.String IDENTIFIERS_UPPERCASE_QUOTED
static final java.lang.String IDENTIFIERS_MIXEDCASE_SENSITIVE
static final java.lang.String IDENTIFIERS_MIXEDCASE_QUOTED_SENSITIVE
| Method Detail |
|---|
java.util.Collection<java.lang.String> getSupportedOptions()
boolean supportsOption(java.lang.String option)
option - The option
MappingManager getMappingManager(MappedStoreManager storeMgr)
storeMgr - The StoreManager
java.lang.String getVendorID()
void initialiseTypes(StoreSchemaHandler handler,
ManagedConnection mconn)
handler - SchemaHandler that we initialise the types formconn - Managed connection to usevoid setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
props - The properties
void removeUnsupportedMappings(StoreSchemaHandler handler,
ManagedConnection mconn)
handler - Schema handlermconn - Managed connection to useboolean isReservedKeyword(java.lang.String word)
word - The word
void initialiseDatastore(java.lang.Object conn)
conn - the connection to the datastorejava.lang.String getIdentifierQuoteString()
java.lang.String getCatalogSeparator()
long getAdapterTime(java.sql.Timestamp time)
time - The timestamp
int getDatastoreMajorVersion()
int getDatastoreMinorVersion()
boolean isIdentityFieldDataType(java.lang.String columnDef)
columnDef is an identity field type for the datastore.
columnDef - the datastore type name
columnDef has values for identity generation in the datastoreint getDatastoreIdentifierMaxLength(IdentifierType identifierType)
identifierType - Type of identifier
int getMaxForeignKeys()
int getMaxIndexes()
boolean supportsQueryFetchSize(int size)
size - The value to set to
java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||