|
||||||||||
| 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 String |
ANALYSIS_METHODS
Accessor for whether the SQL extensions CUBE, ROLLUP are supported. |
static String |
BIT_IS_REALLY_BOOLEAN
Whether "Types.BIT" is really mapped as BOOLEAN. |
static String |
BOOLEAN_COMPARISON
Whether we support Boolean comparisons. |
static String |
CATALOGS_IN_TABLE_DEFINITIONS
Whether this datastore supports the use of the catalog name in ORM table definitions (DDL). |
static String |
ESCAPE_EXPRESSION_IN_LIKE_PREDICATE
|
static String |
IDENTIFIERS_LOWERCASE
|
static String |
IDENTIFIERS_LOWERCASE_QUOTED
|
static String |
IDENTIFIERS_MIXEDCASE
|
static String |
IDENTIFIERS_MIXEDCASE_QUOTED
|
static String |
IDENTIFIERS_MIXEDCASE_QUOTED_SENSITIVE
|
static String |
IDENTIFIERS_MIXEDCASE_SENSITIVE
|
static String |
IDENTIFIERS_UPPERCASE
|
static String |
IDENTIFIERS_UPPERCASE_QUOTED
|
static String |
IDENTITY_COLUMNS
Whether this datastore adapter support identity fields. |
static 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 String |
SCHEMAS_IN_TABLE_DEFINITIONS
Whether this datastore supports the use of the schema name in ORM table definitions (DDL). |
static String |
SEQUENCES
Whether we support sequences. |
| Method Summary | |
|---|---|
long |
getAdapterTime(Timestamp time)
Utility to return the adapter time in case there are rounding issues with millisecs etc. |
String |
getCatalogSeparator()
Accessor for the catalog separator (string to separate the catalog/schema and the identifier). |
String |
getDatastoreDriverName()
Accessor for the datastore driver name. |
String |
getDatastoreDriverVersion()
Accessor for the datastore driver version. |
int |
getDatastoreIdentifierMaxLength(IdentifierType identifierType)
Method to return the maximum length of a datastore identifier of the specified type. |
String |
getDatastoreProductName()
Accessor for the datastore product name. |
String |
getDatastoreProductVersion()
Accessor for the datastore product version. |
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. |
Collection<String> |
getSupportedOptions()
Accessor for the options that are supported by this datastore adapter and the underlying datastore. |
String |
getVendorID()
Accessor for the Vendor ID for this datastore. |
void |
initialiseDatastore(Object conn)
Creates the auxiliary functions/procedures in the datastore |
void |
initialiseTypes(StoreSchemaHandler handler,
ManagedConnection mconn)
Initialise the types for this datastore. |
boolean |
isIdentityFieldDataType(String columnDef)
Verifies if the given columnDef is an identity field type for the datastore. |
boolean |
isReservedKeyword(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(Map<String,Object> props)
Set any properties controlling how the adapter is configured. |
boolean |
supportsOption(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. |
String |
toString()
Method to return this object as a string. |
| Field Detail |
|---|
static final String IDENTITY_COLUMNS
static final String SEQUENCES
static final String BIT_IS_REALLY_BOOLEAN
static final String BOOLEAN_COMPARISON
static final String ESCAPE_EXPRESSION_IN_LIKE_PREDICATE
static final String PROJECTION_IN_TABLE_REFERENCE_JOINS
static final String ANALYSIS_METHODS
static final String CATALOGS_IN_TABLE_DEFINITIONS
static final String SCHEMAS_IN_TABLE_DEFINITIONS
static final String IDENTIFIERS_LOWERCASE
static final String IDENTIFIERS_MIXEDCASE
static final String IDENTIFIERS_UPPERCASE
static final String IDENTIFIERS_LOWERCASE_QUOTED
static final String IDENTIFIERS_MIXEDCASE_QUOTED
static final String IDENTIFIERS_UPPERCASE_QUOTED
static final String IDENTIFIERS_MIXEDCASE_SENSITIVE
static final String IDENTIFIERS_MIXEDCASE_QUOTED_SENSITIVE
| Method Detail |
|---|
Collection<String> getSupportedOptions()
boolean supportsOption(String option)
option - The option
MappingManager getMappingManager(MappedStoreManager storeMgr)
storeMgr - The StoreManager
String getVendorID()
void initialiseTypes(StoreSchemaHandler handler,
ManagedConnection mconn)
handler - SchemaHandler that we initialise the types formconn - Managed connection to usevoid setProperties(Map<String,Object> props)
props - The properties
void removeUnsupportedMappings(StoreSchemaHandler handler,
ManagedConnection mconn)
handler - Schema handlermconn - Managed connection to useboolean isReservedKeyword(String word)
word - The word
void initialiseDatastore(Object conn)
conn - the connection to the datastoreString getIdentifierQuoteString()
String getCatalogSeparator()
long getAdapterTime(Timestamp time)
time - The timestamp
String getDatastoreProductName()
String getDatastoreProductVersion()
String getDatastoreDriverName()
String getDatastoreDriverVersion()
boolean isIdentityFieldDataType(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
String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||