|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
It defines a context used in by the PersistenceManager. A context contains a collection of CacheEntry instances and has a status.
Field Summary | |
static byte |
CTX_ACTIVE
The status of a non transactional context which is not already closed. |
static byte |
CTX_CLOSED
The status of a cloased context (transactional or not) |
Method Summary | |
void |
bind(State state,
java.lang.Object oid)
Attaches an entry to the working set. |
void |
clear()
Removes all entries of the working set. |
java.util.Set |
entries()
|
ConnectionHolder |
getConnectionHolder()
|
byte |
getStatus()
Returns the working set's status. |
java.lang.Object |
getUserObject()
|
boolean |
getWSRestoreValues()
|
boolean |
getWSRetainValues()
|
State |
lookup(java.lang.Object oid)
|
java.util.Set |
oids()
|
void |
setStatus(byte status)
Sets the working set's status. |
void |
setWSRestoreValues(boolean val)
|
void |
setWSRetainValues(boolean val)
|
boolean |
unbind(java.lang.Object oid)
Dettaches an entry from the working set. |
Field Detail |
public static final byte CTX_ACTIVE
public static final byte CTX_CLOSED
Method Detail |
public byte getStatus()
TransactionalPersistenceManager
interface.public void setStatus(byte status) throws PersistenceException
status
- one of the constants of the TransactionalPersistenceManager
interface.
PersistenceException
- if this is a probleme in the interception of
the working set life cycle.public State lookup(java.lang.Object oid)
public void bind(State state, java.lang.Object oid)
state
- is the state which must be attached to the working setoid
- is the id of the corresponding objectpublic boolean unbind(java.lang.Object oid)
oid
- is the identifier of entry which must be detattached from
the working set
public void clear()
public java.util.Set entries()
public java.util.Set oids()
public java.lang.Object getUserObject()
public ConnectionHolder getConnectionHolder()
public boolean getWSRetainValues()
public void setWSRetainValues(boolean val)
public boolean getWSRestoreValues()
public void setWSRestoreValues(boolean val)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |