|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface to be implemented by data store mechanisms to interact with this JDO runtime.
| Method Summary | |
void |
begin()
Begin a data store transaction. |
void |
beginOptimistic()
Notification that an optimistic transaction has started. |
boolean |
checkVersion(StateManagerImpl sm)
Determine whether the given StateManager is the same version as the datastore version. |
void |
commit()
Commit the current data store transaction. |
Object |
copyDataStoreId(Object oid,
ClassMetaData meta)
Copy the given object id value. |
void |
delete(StateManagerImpl sm)
Delete the given instance from the data store. |
boolean |
exists(Object oid,
ClassMetaData meta)
Verify that the given instance exists in the data store. |
Class |
getDataStoreIdClass(ClassMetaData meta)
Return the class used by this StoreManager for datastore identity values. |
boolean |
initialize(StateManagerImpl sm,
com.solarmetric.kodo.runtime.JDOState state,
Object connection)
Initialize the given StateManager. |
void |
insert(StateManagerImpl sm)
Insert the given instance into the data store. |
void |
load(StateManagerImpl sm,
Object connection,
BitSet fields,
boolean setVersion)
Load the given StateManager. |
Object |
newDataStoreId(ClassMetaData meta)
Create a new unique datastore identity for the given type. |
Object |
newDataStoreId(String str,
ClassMetaData meta)
Create a new unique datastore identity for the given type from the given string. |
Extent |
newExtent(ClassMetaData meta,
boolean subclasses)
Return an extent of the given candidate class, optionally including subclasses. |
com.solarmetric.kodo.query.FilterExtensions |
newFilterExtensions()
Return a FilterExtensions implementation for use in queries. |
Query |
newQuery(String language,
Object template)
Return a query implementation suitable for this runtime. |
void |
rollback()
Rollback the current data store transaction. |
void |
setPersistenceManager(PersistenceManagerImpl pm)
Set a reference to the corresponding PersistenceManager. |
void |
update(StateManagerImpl sm,
BitSet fields)
Update the given instance in the data store. |
| Method Detail |
public void setPersistenceManager(PersistenceManagerImpl pm)
public void beginOptimistic()
begin() method, which will still be called
when a true data store transaction should begin.public void begin()
public void commit()
public void rollback()
public boolean exists(Object oid,
ClassMetaData meta)
public boolean checkVersion(StateManagerImpl sm)
sm - the instance to check
public boolean initialize(StateManagerImpl sm,
com.solarmetric.kodo.runtime.JDOState state,
Object connection)
oid of the
StateManager will be set, and the meta field of the
StateManager will be set to the class of the instance to load, or
possibly one of its superclasses. Initialization involves first
calling the StateManagerImpl#setPersistenceCapable method with
a new instance of the correct type constructed with the
JDOImplHelper#newInstance(Class,StateManager,Object) method
(this will reset the meta field of the StateManager if
the actual type was a subclass), then possibly loading any fields if
desired. The version information for the StateManager should also be
set. If this method is called during a data store transaction, the
instance should be locked.sm - the instance to initializestate - the JDO state to pass through to the state
manager's initialize methodconnection - the current connection information, or null if not
given to the calling method of the persistence
manager
public void load(StateManagerImpl sm,
Object connection,
BitSet fields,
boolean setVersion)
sm - the instance to loadconnection - the current connection information, or null if not
given to the calling method of the persistence
managerfields - the fields to load; the field corrsponding to the
metadata field at each set bit position should
be loaded; additional fields can be loaded if
desired; attempting to load an additional field that
has been dirtied will cause the load to be ignored;
this bit set should not be modifiedsetVersion - if true, the version information should also be
loaded from the db and set in the instancepublic void insert(StateManagerImpl sm)
public void update(StateManagerImpl sm,
BitSet fields)
public void delete(StateManagerImpl sm)
public Class getDataStoreIdClass(ClassMetaData meta)
public Object copyDataStoreId(Object oid,
ClassMetaData meta)
public Object newDataStoreId(ClassMetaData meta)
public Object newDataStoreId(String str,
ClassMetaData meta)
public Extent newExtent(ClassMetaData meta,
boolean subclasses)
public Query newQuery(String language,
Object template)
the - query language; implementations are only required to
support javax.jdo.query.JDOQLa - template query instance also from this StoreManager; this
instance may be null; if not null, the filter, variables,
parameters, imports, and candidate class should be copied from
the template to the returned Query instancepublic com.solarmetric.kodo.query.FilterExtensions newFilterExtensions()
return FilterExtensions.DefaultExtensions.newExtensions ()
|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||