|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
---|---|
void |
accessCompletion(WorkingSet context,
State ce)
This method can be used to mark the end of an access to a data object. |
void |
close(WorkingSet context)
Closes and releases a context. |
WorkingSet |
createWS(java.lang.Object userObject)
creates a working set |
WorkingSet |
createWS(java.lang.Object userObject,
java.lang.Object workingSetType)
creates a working set |
boolean |
evict(WorkingSet context,
java.lang.Object oid,
boolean force)
This methods permits to force the cache eviction of a persistent object designed by its identifier. |
int |
evictAll(WorkingSet context,
boolean force)
This methods permits to try the cache eviction of all persistent object |
State |
export(WorkingSet context,
java.lang.Object obj)
Given an object, this method creates the corresponding copy in permanent support. |
State |
export(WorkingSet context,
java.lang.Object obj,
java.lang.Object hints)
This method permits to given some information to build the identifier of the new persistent object. |
void |
flush(WorkingSet context,
State state)
This method permits to flush entries associated to a context. |
void |
flush(WorkingSet context,
StateFilter statefilter)
This method permits to flush entries associated to a context. |
CacheEntry |
getObjectById(WorkingSet context,
java.lang.Object oid)
This method retrieves a CacheEntry without checking if the persistent object, exists. |
State |
readIntention(WorkingSet context,
java.lang.Object oid,
java.lang.Object thinLock)
This method records an access intention to a data object in read mode. |
void |
refresh(WorkingSet ws,
java.lang.Object oid)
Forget modifications of a dirty persistent object. |
void |
unbind(WorkingSet ws,
java.lang.Object oid)
Detach a persistent object from the persistent support. |
State |
unexport(WorkingSet context,
java.lang.Object oid)
Deletes the binding between an in main-memory object, and its corresponding copy in permanent support. |
State |
writeIntention(WorkingSet context,
java.lang.Object oid,
java.lang.Object thinLock)
This method records an access intention to a data object in write mode. |
Method Detail |
public State export(WorkingSet context, java.lang.Object obj) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.obj
- The object whose state is to be copied to
PersistenceException
- Whenever the object is invalid
(e.g. NULL) or it has been previously bound to another oid.public State export(WorkingSet context, java.lang.Object obj, java.lang.Object hints) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.obj
- The object whose state is to be copied tohints
- can be used to build the identifier of the object.
PersistenceException
- Whenever the object is invalid
(e.g. NULL) or it has been previously bound to another oid.public State unexport(WorkingSet context, java.lang.Object oid) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.oid
- The identifier of the corresponding object to be
destroyed.
PersistenceException
public CacheEntry getObjectById(WorkingSet context, java.lang.Object oid) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.oid
- The identifier of the corresponding object to find
PersistenceException
public State readIntention(WorkingSet context, java.lang.Object oid, java.lang.Object thinLock) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.oid
- is the object identifier.
PersistenceException
public State writeIntention(WorkingSet context, java.lang.Object oid, java.lang.Object thinLock) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.oid
- is the object identifier.
PersistenceException
public void accessCompletion(WorkingSet context, State ce) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.ce
- is the cache entry on which the access is finished.
PersistenceException
public void flush(WorkingSet context, StateFilter statefilter) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.statefilter
- is a filter of the cache entry which must be flushed.
A null StateFilter means all entries associated to the context has to be
flushed.
PersistenceException
- if the context is not valid.public void flush(WorkingSet context, State state) throws PersistenceException
context
- is an identifier of the execution context. It can be a
transaction handle.state
- is the state taht must be flushed
PersistenceException
- if the context is not valid.public boolean evict(WorkingSet context, java.lang.Object oid, boolean force) throws PersistenceException
context
- is the working set asking the eviction.oid
- is the identifier of the persistent object to evict from the
cacheforce
- indicates if the entry MUST be evicted (true) or TRIES to be
evicted (false).
PersistenceException
- if the instance is dirty or used by other
working set.public int evictAll(WorkingSet context, boolean force) throws PersistenceException
PersistenceException
public void unbind(WorkingSet ws, java.lang.Object oid) throws PersistenceException
ws
- is the current working setoid
- is the identifier of the persistent object
PersistenceException
public void refresh(WorkingSet ws, java.lang.Object oid) throws PersistenceException
ws
- is the current working setoid
- is the identifier of the persistent object
PersistenceException
public WorkingSet createWS(java.lang.Object userObject) throws PersistenceException
userObject
- can be an external user depending on the
personnality.
PersistenceException
public WorkingSet createWS(java.lang.Object userObject, java.lang.Object workingSetType) throws PersistenceException
userObject
- can be an external user depending on the
personnality.workingSetType
- is a type of the working set.
PersistenceException
public void close(WorkingSet context) throws PersistenceException
context
- which must be closed
PersistenceException
- if the context is a transactional context
which has not been commited or aborted.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |