|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatastoreAdapter
Definition of a datastore adapter.
| Method Summary | |
|---|---|
long |
getAdapterTime(java.sql.Timestamp time)
Utility to return the adapter time in case there are rounding issues with millisecs etc. |
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. |
JavaTypeMapping |
getMapping(java.lang.Class c,
boolean serialised,
boolean embedded,
StoreManager storeMgr,
ClassLoaderResolver clr)
Accessor for the mapping for the specified class. |
JavaTypeMapping |
getMapping(java.lang.Class c,
boolean serialised,
boolean embedded,
java.lang.String fieldName,
StoreManager storeMgr)
Accessor for the mapping for the specified class. |
JavaTypeMapping |
getMapping(java.lang.Class c,
StoreManager storeMgr)
Accessor for the mapping for the specified class. |
JavaTypeMapping |
getMapping(java.lang.Class c,
StoreManager storeMgr,
ClassLoaderResolver clr)
Convenience accessor for the mapping for the specified class. |
MappingManager |
getMappingManager()
Accessor for the Mapping Manager for field mapping management. |
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 |
boolean |
isAutoIncrementingDataType(java.lang.String columnDef)
Verifies if the given columnDef is auto incremented by the datastore. |
boolean |
isReservedKeyword(java.lang.String word)
Method to check if a word is reserved for this datastore. |
boolean |
isStoresLowerCaseIdentifiers()
Accessor for whether this adapter stores lower case identifiers. |
boolean |
isStoresLowerCaseQuotedIdentifiers()
Accessor for whether this adapter stores "lowercase" identifiers. |
boolean |
isStoresMixedCaseIdentifiers()
Accessor for whether this adapter stores MixedCase identifiers. |
boolean |
isStoresMixedCaseQuotedIdentifiers()
Accessor for whether this adapter "MixedCase" identifiers. |
boolean |
isStoresUpperCaseIdentifiers()
Accessor for whether this adapter stores UPPERCASE identifiers. |
boolean |
isStoresUpperCaseQuotedIdentifiers()
Accessor for whether this adapter stores "UPPERCASE" identifiers. |
void |
loadDatastoreMapping(PluginManager mgr,
ClassLoaderResolver clr)
Load the datastore mappings declared as Plug-in |
NumericExpression |
modOperator(ScalarExpression operand1,
ScalarExpression operand2)
Method to generate a modulus expression. |
QueryExpression |
newQueryStatement(DatastoreContainerObject container,
ClassLoaderResolver clr)
Accessor for a new query statement. |
QueryExpression |
newQueryStatement(DatastoreContainerObject container,
DatastoreIdentifier rangeVar,
ClassLoaderResolver clr)
Accessor for a new query statement. |
boolean |
supportsAutoIncrementFields()
Whether this datastore adapter support auto-incrementing fields. |
boolean |
supportsQueryFetchSizeLowerThanOne()
Whether the datastore supports setting a fetch size lower than one. |
boolean |
supportsSequences()
Whether this datastore adapter supports sequences. |
java.lang.String |
toString()
Method to return this object as a string. |
| Methods inherited from interface org.jpox.store.expression.ExpressionConversionAdapter |
|---|
toNumericExpression, toStringExpression, toStringExpression |
| Methods inherited from interface org.jpox.store.expression.ExpressionOperatorAdapter |
|---|
concatOperator, getOperatorConcat |
| Methods inherited from interface org.jpox.store.expression.ExpressionMethodAdapter |
|---|
absMethod, acosMethod, asinMethod, atanMethod, ceilMethod, cosMethod, endsWithMethod, expMethod, floorMethod, getDayMethod, getHourMethod, getMinuteMethod, getMonthMethod, getSecondMethod, getYearMethod, indexOfMethod, lengthMethod, logMethod, matchesMethod, sinMethod, sqrtMethod, startsWithMethod, substringMethod, substringMethod, tanMethod, trimMethod |
| Methods inherited from interface org.jpox.store.expression.ExpressionSupportedFeaturesAdapter |
|---|
supportsBooleanComparison, supportsEscapeExpressionInLikePredicate |
| Methods inherited from interface org.jpox.store.expression.ExpressionPatternAdapter |
|---|
getEscapeCharacter, getEscapedPatternExpression, getEscapePatternExpression, getPatternExpressionAnyCharacter, getPatternExpressionZeroMoreCharacters |
| Methods inherited from interface org.jpox.store.expression.ExpressionLogicSetAdapter |
|---|
cartersianProduct |
| Method Detail |
|---|
MappingManager getMappingManager()
java.lang.String getVendorID()
void loadDatastoreMapping(PluginManager mgr,
ClassLoaderResolver clr)
mgr - the PluginManagerclr - the ClassLoaderResolverboolean isReservedKeyword(java.lang.String word)
word - The word
void initialiseDatastore(java.lang.Object conn)
conn - the connection to the datastorejava.lang.String getIdentifierQuoteString()
QueryExpression newQueryStatement(DatastoreContainerObject container,
ClassLoaderResolver clr)
container - The table to queryclr - the ClassLoaderResolver
QueryExpression newQueryStatement(DatastoreContainerObject container,
DatastoreIdentifier rangeVar,
ClassLoaderResolver clr)
container - The table to queryrangeVar - A range variable for the queryclr - the ClassLoaderResolver
JavaTypeMapping getMapping(java.lang.Class c,
StoreManager storeMgr)
c - Java typestoreMgr - the StoreManager
JavaTypeMapping getMapping(java.lang.Class c,
boolean serialised,
boolean embedded,
java.lang.String fieldName,
StoreManager storeMgr)
c - Java typeserialised - Whether the type is serialisedembedded - Whether the type is embeddedfieldName - Name of field (for logging only)storeMgr - the StoreManager
JavaTypeMapping getMapping(java.lang.Class c,
StoreManager storeMgr,
ClassLoaderResolver clr)
c - Class to querystoreMgr - The Store Managerclr - The ClassLoaderResolver
JavaTypeMapping getMapping(java.lang.Class c,
boolean serialised,
boolean embedded,
StoreManager storeMgr,
ClassLoaderResolver clr)
c - Class to queryserialised - Whether the type is serialisedembedded - Whether the type is embeddedstoreMgr - The Store Managerclr - The ClassLoaderResolver
long getAdapterTime(java.sql.Timestamp time)
time - The timestamp
int getDatastoreMajorVersion()
int getDatastoreMinorVersion()
NumericExpression modOperator(ScalarExpression operand1,
ScalarExpression operand2)
modOperator in interface ExpressionOperatorAdapteroperand1 - the left expressionoperand2 - the right expression
boolean isAutoIncrementingDataType(java.lang.String columnDef)
columnDef is auto incremented by the datastore.
columnDef - the datastore type name
columnDef has values auto incremented by the datastoreboolean supportsAutoIncrementFields()
boolean supportsSequences()
boolean supportsQueryFetchSizeLowerThanOne()
boolean isStoresLowerCaseIdentifiers()
boolean isStoresLowerCaseQuotedIdentifiers()
boolean isStoresMixedCaseIdentifiers()
boolean isStoresMixedCaseQuotedIdentifiers()
boolean isStoresUpperCaseIdentifiers()
boolean isStoresUpperCaseQuotedIdentifiers()
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 | |||||||||