|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Definition of a datastore adapter.
Field Summary | |
static int |
IDENTIFIER_LOWER_CASE
Representation of an identifier specified in lower case. |
static int |
IDENTIFIER_LOWER_CASE_QUOTED
Representation of an identifier specified in "lower case" |
static int |
IDENTIFIER_MIXED_CASE
Representation of an identifier specified in Mixed Case. |
static int |
IDENTIFIER_MIXED_CASE_QUOTED
Representation of an identifier specified in "Mixed Case". |
static int |
IDENTIFIER_UPPER_CASE
Representation of an identifier specified in UPPER CASE |
static int |
IDENTIFIER_UPPER_CASE_QUOTED
Representation of an identifier specified in "UPPER CASE" |
Method Summary | |
void |
closeConnection(java.sql.Connection conn)
Method to close a Connection to the datastore. |
long |
getAdapterTime(java.sql.Timestamp time)
Utility to return the adapter time in case there are rounding issues with millisecs etc. |
java.sql.Connection |
getConnection(javax.sql.DataSource[] ds,
java.lang.String userName,
java.lang.String password,
int isolationLevel)
Accessor for a Connection to the datastore. |
int |
getDatastoreMajorVersion()
Accessor for the datastore major version number. |
int |
getDatastoreMinorVersion()
Accessor for the datastore minor version number. |
Dictionary |
getDictionary()
Accessor for the Dictionary. |
int |
getIdentifierCase()
Accessor for the case that the identifiers will be stored in |
java.lang.String |
getIdentifierInAdapterCase(java.lang.String identifier)
Convenience accessor for the passed identifier in the correct case and quoting. |
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 schema |
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. |
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, 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 |
Field Detail |
public static final int IDENTIFIER_UPPER_CASE
public static final int IDENTIFIER_UPPER_CASE_QUOTED
public static final int IDENTIFIER_LOWER_CASE
public static final int IDENTIFIER_LOWER_CASE_QUOTED
public static final int IDENTIFIER_MIXED_CASE
public static final int IDENTIFIER_MIXED_CASE_QUOTED
Method Detail |
public MappingManager getMappingManager()
public java.lang.String getVendorID()
public void loadDatastoreMapping(PluginManager mgr, ClassLoaderResolver clr)
mgr
- the PluginManagerclr
- the ClassLoaderResolverpublic boolean isReservedKeyword(java.lang.String word)
word
- The word
public void initialiseDatastore(java.lang.Object conn)
conn
- the connection to the datastorepublic java.sql.Connection getConnection(javax.sql.DataSource[] ds, java.lang.String userName, java.lang.String password, int isolationLevel) throws java.sql.SQLException
ds
- The data source. Possible to have more than one datasource for failoveruserName
- The username for the datastorepassword
- The password for the datastoreisolationLevel
- The level of transaction isolation
java.sql.SQLException
- Thrown when an error occurs in the creation.public void closeConnection(java.sql.Connection conn) throws java.sql.SQLException
conn
- The connection
java.sql.SQLException
- Thrown if error occurs on the close.public int getIdentifierCase()
public java.lang.String getIdentifierQuoteString()
public java.lang.String getIdentifierInAdapterCase(java.lang.String identifier)
identifier
- The identifier
public QueryExpression newQueryStatement(DatastoreContainerObject container, ClassLoaderResolver clr)
container
- The table to queryclr
- the ClassLoaderResolver
public QueryExpression newQueryStatement(DatastoreContainerObject container, DatastoreIdentifier rangeVar, ClassLoaderResolver clr)
container
- The table to queryrangeVar
- A range variable for the queryclr
- the ClassLoaderResolver
public JavaTypeMapping getMapping(java.lang.Class c, StoreManager storeMgr)
c
- Java typestoreMgr
- the StoreManager
public 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
public JavaTypeMapping getMapping(java.lang.Class c, StoreManager storeMgr, ClassLoaderResolver clr)
c
- Class to querystoreMgr
- The Store Managerclr
- The ClassLoaderResolver
public 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
public Dictionary getDictionary()
public long getAdapterTime(java.sql.Timestamp time)
time
- The timestamp
public int getDatastoreMajorVersion()
public int getDatastoreMinorVersion()
public NumericExpression modOperator(ScalarExpression operand1, ScalarExpression operand2)
modOperator
in interface ExpressionOperatorAdapter
operand1
- the left expressionoperand2
- the right expression
public 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 datastorepublic boolean supportsAutoIncrementFields()
public boolean supportsSequences()
public boolean supportsQueryFetchSizeLowerThanOne()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |