|
||||||||||||
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) |
static byte |
READ_INTENTION
The origin of the binding action. |
static byte |
UNKNOWN_INTENTION
|
static byte |
WRITE_INTENTION
|
Method Summary | |
---|---|
State |
bind(State state,
java.lang.Object oid,
byte mode)
Attaches an entry to the working set. |
void |
clear()
Removes all entries of the working set. |
java.util.Set |
entries()
|
ConnectionHolder |
getConnectionHolder()
|
java.util.Map |
getOid2Entry()
|
byte |
getStatus()
Returns the working set's status. |
java.lang.Object |
getUserObject()
|
boolean |
getWSRestoreValues()
Indicates if the dirty object must be reload at rollback time. |
boolean |
getWSRetainValues()
Indicates if the state of persistent objects reached in the working set must be kept in the cache at the working set end. |
State |
lookup(java.lang.Object oid)
|
java.util.Set |
oids()
|
void |
setStatus(byte status)
Sets the working set's status. |
void |
setWSRestoreValues(boolean val)
assignes a boolean value indicating if the dirty object must be reload at rollback time. |
void |
setWSRetainValues(boolean val)
assing a boolean a value Indicating if the state of persistent objects reached in the working set must be kept in the cache at the working set end. |
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
public static final byte READ_INTENTION
public static final byte WRITE_INTENTION
public static final byte UNKNOWN_INTENTION
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 State bind(State state, java.lang.Object oid, byte mode)
state
- is the state which must be attached to the working setoid
- is the id of the corresponding objectmode
- is the origin of the binding action: read/write intention
READ_INTENTION.WRITE_INTENTION.UNKNOWN_INTENTION
public 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.util.Map getOid2Entry()
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 |