| com.triactive.jdo.PersistenceManager
All known Subclasses: com.triactive.jdo.PersistenceManagerImpl,
PersistenceManager | public interface PersistenceManager extends javax.jdo.PersistenceManager(Code) | | An extension to the standard persistence manager interface including methods
specific to TriActive JDO.
Applications should not use these methods.
author: Mike Martin version: $Revision: 1.6 $ |
dataStoreModified | void dataStoreModified()(Code) | | Called by state managers to indicate they have made a modification to the
data store.
|
dataStoreModifyCount | int dataStoreModifyCount()(Code) | | Returns the number of data store modifications made under this
persistence manager.
Can be used as a version stamp on the data store.
Note that it only reflects modifications made to objects from this
persistence manager.
|
enlistInTransaction | void enlistInTransaction(StateManager sm)(Code) | | Called by state managers to enlist in the transaction cache.
|
evictFromTransaction | void evictFromTransaction(StateManager sm)(Code) | | Called by state managers to evict themselves from the transaction cache.
|
findStateManager | StateManager findStateManager(Object obj)(Code) | | Finds the StateManager for a given object.
The object's state manager, or null if obj is null orhas no state manager. exception: JDOUserException - If obj is not PersistenceCapable or is managed by adifferent PersistenceManager. |
flushDirty | void flushDirty()(Code) | | Causes any dirty state manager to be updated in storage.
|
getConnection | Connection getConnection(boolean forWriting) throws SQLException(Code) | | Obtains a JDBC connection to the data store.
If a JDO transaction is active, this is the connection on which the
corresponding JDBC transaction is active.
Otherwise a new connection is obtained from the underlying data source.
Parameters: forWriting - true if the connection will be used for updates.A JDBC connection. |
getObjectById | Object getObjectById(Object id, Class contextClass, boolean validate)(Code) | | Locates a persistent instance in the cache of instances managed by this
PersistenceManager.
This is a variation of getObjectById(Object, boolean) that allows a
context class to be specified for class loading purposes.
Parameters: id - An object ID. Parameters: contextClass - A class to use as a class-loading context, if necessary, ornull to use just the default class loader(s). Parameters: validate - true if the existence of the instance is to bevalidated.The PersistenceCapable instance having the specified object ID. |
getObjectById | Object getObjectById(Object id, Class contextClass, int[] fieldNumbers, FieldManager fieldManager)(Code) | | Locates a persistent instance in the cache of instances managed by this
PersistenceManager.
This is a variation of
PersistenceManager.getObjectById(Object,Class,boolean) that
allows specific initial field values to be offered to the state manager.
Classes in the store package use this method to proactively offer field
values in cases where they are readily available.
If the instance is in a state that can benefit from newly available field
values, the fields are replaced in the instance and a state change occurs
as though the instance itself had read a field.
Parameters: id - An object ID. Parameters: contextClass - A class to use as a class-loading context, if necessary, ornull to use just the default class loader(s). Parameters: fieldNumbers - The field numbers being offered. Parameters: fieldManager - A field manager from which to get the offered fields.The PersistenceCapable instance having the specified object ID. |
getStoreManager | StoreManager getStoreManager()(Code) | | Returns the store manager used for storage by this persistence manager.
|
markDirty | void markDirty(StateManager sm)(Code) | | Marks the specified state manager as dirty.
In this case, "dirty" means having one or more fields modified that have
not been updated in storage via the StoreManager.
The persistence manager allows at most one state manager at a time to be
considered dirty.
The sole purpose of this delayed update is to coalesce multiple field
changes on the same object into one SQL UPDATE.
|
removeStateManager | void removeStateManager(StateManager sm)(Code) | | Called by state managers when disconnecting from the managed object.
Also evicts from the transaction cache.
|
|
|