| java.lang.Object org.jpox.store.AbstractDatastoreAdapter
AbstractDatastoreAdapter | abstract public class AbstractDatastoreAdapter implements DatastoreAdapter(Code) | | Generalised datastore representation. Each datastore is assumed to have a
"name", and a "version" (of the form major.minor.revision) and will store
"identifiers". In addition, each field will have a Mapping to the datastore
This will typically be extended to provide e.g RDBMS connection using JDBC,
or XML file connection using a DOM parser.
version: $Revision: 1.31 $ |
Method Summary | |
public long | getAdapterTime(Timestamp time) | public int | getDatastoreMajorVersion() | public int | getDatastoreMinorVersion() | public String | getIdentifierQuoteString() Accessor for an identifier quote string. | public JavaTypeMapping | getMapping(Class c, StoreManager storeMgr) Convenience accessor for the mapping for the specified class when not serialised and not embedded. | public JavaTypeMapping | getMapping(Class c, StoreManager storeMgr, boolean serialised, boolean embedded, String fieldName) Convenience accessor for the mapping for the specified class.
Parameters: c - Java type Parameters: storeMgr - the StoreManager Parameters: serialised - Whether the type is serialised Parameters: embedded - Whether the type is embedded Parameters: fieldName - Name of field (for logging only). | public JavaTypeMapping | getMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr) Accessor for the mapping for the specified class when not serialised and not embedded. | public JavaTypeMapping | getMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr, boolean serialised, boolean embedded) Convenience accessor for the mapping for the specified class. | final protected JavaTypeMapping | getMapping(Class c, ScalarExpression expr) Convenience accessor for the mapping for the specified class. | public MappingManager | getMappingManager() | protected int | getMiliseconds(long nanos) | abstract protected MappingManager | getNewMappingManager() Accessor for a new mapping manager. | protected long | getTime(long time, long nanos) | public String | getVendorID() | public boolean | isBitReallyBoolean() Accessor for whether a bit is really mapped in the datastore to boolean. | public boolean | isReservedKeyword(String word) | public void | loadDatastoreMapping(PluginManager mgr, ClassLoaderResolver clr) | public NumericExpression | modOperator(ScalarExpression operand1, ScalarExpression operand2) | abstract public QueryExpression | newQueryStatement(DatastoreContainerObject container, ClassLoaderResolver clr) | abstract public QueryExpression | newQueryStatement(DatastoreContainerObject container, DatastoreIdentifier rangeVar, ClassLoaderResolver clr) | public boolean | supportsIdentityFields() Accessor for whether autoincrementing fields are supported. | public boolean | supportsQueryFetchSize(int size) Whether the datastore will support setting the query fetch size to the supplied value. | public boolean | supportsSequences() Accessor for whether sequences are supported. |
datastoreMajorVersion | protected int datastoreMajorVersion(Code) | | The major version number of the underlying datastore.
|
datastoreMinorVersion | protected int datastoreMinorVersion(Code) | | The minor version number of the underlying datastore.
|
datastoreProductName | protected String datastoreProductName(Code) | | The product name of the underlying datastore.
|
datastoreProductVersion | protected String datastoreProductVersion(Code) | | The version number of the underlying datastore as a string.
|
datastoreRevisionVersion | protected int datastoreRevisionVersion(Code) | | The revision version number of the underlying datastore.
|
identifierQuoteString | protected String identifierQuoteString(Code) | | The String used to quote identifiers.
|
mappingManager | protected MappingManager mappingManager(Code) | | Manager for the mapping between Java and datastore types.
|
reservedKeywords | final protected HashSet reservedKeywords(Code) | | The set of reserved keywords for this datastore.
|
AbstractDatastoreAdapter | public AbstractDatastoreAdapter()(Code) | | Constructor.
|
getDatastoreMajorVersion | public int getDatastoreMajorVersion()(Code) | | |
getDatastoreMinorVersion | public int getDatastoreMinorVersion()(Code) | | |
getIdentifierQuoteString | public String getIdentifierQuoteString()(Code) | | Accessor for an identifier quote string.
Identifier quote string. |
getMapping | public JavaTypeMapping getMapping(Class c, StoreManager storeMgr)(Code) | | Convenience accessor for the mapping for the specified class when not serialised and not embedded.
Parameters: c - Java type Parameters: storeMgr - the StoreManager The mapping for the class. |
getMapping | public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, boolean serialised, boolean embedded, String fieldName)(Code) | | Convenience accessor for the mapping for the specified class.
Parameters: c - Java type Parameters: storeMgr - the StoreManager Parameters: serialised - Whether the type is serialised Parameters: embedded - Whether the type is embedded Parameters: fieldName - Name of field (for logging only). The mapping for the class. |
getMapping | public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr)(Code) | | Accessor for the mapping for the specified class when not serialised and not embedded.
Parameters: c - Java type Parameters: storeMgr - The Store manager Parameters: clr - ClassLoader resolver The mapping for the class. |
getMapping | public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr, boolean serialised, boolean embedded)(Code) | | Convenience accessor for the mapping for the specified class.
Parameters: c - Java type Parameters: storeMgr - The Store manager Parameters: clr - ClassLoader resolver Parameters: serialised - Whether the type is serialised Parameters: embedded - Whether the type is embedded The mapping for the class. |
getMapping | final protected JavaTypeMapping getMapping(Class c, ScalarExpression expr)(Code) | | Convenience accessor for the mapping for the specified class.
Provides a wrapper to the method on the MappingManager.
Parameters: c - Java type Parameters: expr - the ScalarExpression The mapping for the class. |
getMappingManager | public MappingManager getMappingManager()(Code) | | Acessor for the MappingManager
the MappingManager |
getMiliseconds | protected int getMiliseconds(long nanos)(Code) | | |
getNewMappingManager | abstract protected MappingManager getNewMappingManager()(Code) | | Accessor for a new mapping manager.
Must be implemented by subclasses.
The new mapping manager |
getTime | protected long getTime(long time, long nanos)(Code) | | |
isBitReallyBoolean | public boolean isBitReallyBoolean()(Code) | | Accessor for whether a bit is really mapped in the datastore to boolean.
Whether bit is really stored as a boolean |
isReservedKeyword | public boolean isReservedKeyword(String word)(Code) | | |
loadDatastoreMapping | public void loadDatastoreMapping(PluginManager mgr, ClassLoaderResolver clr)(Code) | | Load the datastore mapping declared as Plug-in
Parameters: mgr - the PluginManager Parameters: clr - the ClassLoaderResolver |
supportsIdentityFields | public boolean supportsIdentityFields()(Code) | | Accessor for whether autoincrementing fields are supported.
Whether we support autoincrementing fields |
supportsQueryFetchSize | public boolean supportsQueryFetchSize(int size)(Code) | | Whether the datastore will support setting the query fetch size to the supplied value.
Parameters: size - The value to set to Whether it is supported. |
supportsSequences | public boolean supportsSequences()(Code) | | Accessor for whether sequences are supported.
whether we support sequences. |
|
|