|
||||||||||
| 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,
MappedStoreManager storeMgr)
Accessor for the mapping for the specified class assuming that the type is not serialised and not embedded. |
JavaTypeMapping |
getMapping(java.lang.Class c,
MappedStoreManager storeMgr,
boolean serialised,
boolean embedded,
java.lang.String fieldName)
Accessor for the mapping for the specified class. |
JavaTypeMapping |
getMapping(java.lang.Class c,
MappedStoreManager storeMgr,
ClassLoaderResolver clr)
Accessor for the mapping for the specified class assuming that the type is not serialised and not embedded. |
JavaTypeMapping |
getMapping(java.lang.Class c,
MappedStoreManager storeMgr,
ClassLoaderResolver clr,
boolean serialised,
boolean embedded)
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 |
isBitReallyBoolean()
Accessor for whether bit is really mapped in the datastore to boolean. |
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. |
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 |
supportsIdentityFields()
Whether this datastore adapter support identity fields. |
boolean |
supportsProjectionInTableReferenceJoins()
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" |
boolean |
supportsQueryFetchSize(int size)
Whether the datastore will support setting the query fetch size to the supplied value. |
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.mapped.expression.ExpressionConversionAdapter |
|---|
toNumericExpression, toStringExpression, toStringExpression |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionOperatorAdapter |
|---|
concatOperator, getOperatorConcat |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionMethodAdapter |
|---|
absMethod, acosMethod, asinMethod, atanMethod, ceilMethod, cosMethod, endsWithMethod, expMethod, floorMethod, getCurrentDateMethod, getCurrentTimeMethod, getCurrentTimestampMethod, getDayMethod, getHourMethod, getMinuteMethod, getMonthMethod, getSecondMethod, getYearMethod, indexOfMethod, lengthMethod, logMethod, matchesMethod, sinMethod, sqrtMethod, startsWithMethod, substringMethod, substringMethod, tanMethod, translateMethod, trimMethod |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionSupportedFeaturesAdapter |
|---|
supportsBooleanComparison, supportsEscapeExpressionInLikePredicate |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionPatternAdapter |
|---|
getEscapeCharacter, getEscapedPatternExpression, getEscapePatternExpression, getPatternExpressionAnyCharacter, getPatternExpressionZeroMoreCharacters |
| Methods inherited from interface org.jpox.store.mapped.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,
MappedStoreManager storeMgr)
c - Java typestoreMgr - the StoreManager
JavaTypeMapping getMapping(java.lang.Class c,
MappedStoreManager storeMgr,
boolean serialised,
boolean embedded,
java.lang.String fieldName)
c - Java typestoreMgr - the StoreManagerserialised - Whether the type is serialisedembedded - Whether the type is embeddedfieldName - Name of field (for logging only)
JavaTypeMapping getMapping(java.lang.Class c,
MappedStoreManager storeMgr,
ClassLoaderResolver clr)
c - Class to querystoreMgr - The Store Managerclr - The ClassLoaderResolver
JavaTypeMapping getMapping(java.lang.Class c,
MappedStoreManager storeMgr,
ClassLoaderResolver clr,
boolean serialised,
boolean embedded)
c - Class to querystoreMgr - The Store Managerclr - The ClassLoaderResolverserialised - Whether the type is serialisedembedded - Whether the type is embedded
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 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 datastoreboolean supportsIdentityFields()
boolean supportsSequences()
boolean supportsQueryFetchSize(int size)
size - The value to set to
boolean supportsProjectionInTableReferenceJoins()
boolean isStoresLowerCaseIdentifiers()
boolean isStoresLowerCaseQuotedIdentifiers()
boolean isStoresMixedCaseIdentifiers()
boolean isStoresMixedCaseQuotedIdentifiers()
boolean isStoresUpperCaseIdentifiers()
boolean isStoresUpperCaseQuotedIdentifiers()
boolean isBitReallyBoolean()
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 | |||||||||