|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.perseus.persistence.lib.BasicWorkingSet
It is an implementation of the WorkingSet interface. This implementation is a Fractal component which needs a MonologFactory.
| Field Summary | |
protected ConnectionHolder |
connectionHolder
|
protected Logger |
logger
|
protected java.util.LinkedHashMap |
oid2state
|
protected boolean |
restoreValues
|
protected boolean |
retainValues
|
protected boolean |
rollBackOnly
|
protected byte |
status
|
protected java.lang.Object |
userObject
|
| Fields inherited from interface org.objectweb.perseus.persistence.api.TransactionalWorkingSet |
CTX_ABORTED, CTX_ACTIVE_TRANSACTIONAL, CTX_COMMITTED, CTX_PREPARED, CTX_PREPARED_FAIL, CTX_PREPARED_OK |
| Fields inherited from interface org.objectweb.perseus.persistence.api.WorkingSet |
CTX_ACTIVE, CTX_CLOSED, READ_INTENTION, UNKNOWN_INTENTION, WRITE_INTENTION |
| Constructor Summary | |
BasicWorkingSet()
|
|
| Method Summary | |
State |
bind(State state,
java.lang.Object oid,
byte mode)
Attaches an entry to the transaction. |
void |
bindFc(java.lang.String c,
java.lang.Object s)
|
void |
clear()
Removes all entries of the transaction. |
java.util.Set |
entries()
|
ConnectionHolder |
getConnectionHolder()
|
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. |
boolean |
getWSRollBackOnly()
Indicates if the transactional working must rollback at the end. |
java.lang.String[] |
listFc()
|
State |
lookup(java.lang.Object oid)
|
java.lang.Object |
lookupFc(java.lang.String c)
|
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. |
void |
setWSRollBackOnly(boolean val)
Permit to indicates if the transactional working must rollback at the end. |
boolean |
unbind(java.lang.Object oid)
Dettaches an entry from the transaction. |
void |
unbindFc(java.lang.String c)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Logger logger
protected java.util.LinkedHashMap oid2state
protected byte status
protected java.lang.Object userObject
protected ConnectionHolder connectionHolder
protected boolean retainValues
protected boolean restoreValues
protected boolean rollBackOnly
| Constructor Detail |
public BasicWorkingSet()
| Method Detail |
public java.lang.String[] listFc()
public java.lang.Object lookupFc(java.lang.String c)
public void bindFc(java.lang.String c,
java.lang.Object s)
public void unbindFc(java.lang.String c)
public byte getStatus()
WorkingSet
getStatus in interface WorkingSetTransactionalPersistenceManager
interface.
public void setStatus(byte status)
throws PersistenceException
WorkingSet
setStatus in interface WorkingSetstatus - 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)
lookup in interface WorkingSet
public State bind(State state,
java.lang.Object oid,
byte mode)
bind in interface WorkingSetstate - the state which must be attached to the transactionmode - see WorkingSet.READ_INTENTION WorkingSet.WRITE_INTENTION WorkingSet.UNKNOWN_INTENTIONoid - is the id of the corresponding object
READ_INTENTION.WRITE_INTENTION.UNKNOWN_INTENTIONpublic boolean unbind(java.lang.Object oid)
unbind in interface WorkingSetoid - is the identifier of entry which must be detattached from the transaction
public void clear()
clear in interface WorkingSetpublic java.util.Set entries()
entries in interface WorkingSetpublic java.util.Set oids()
oids in interface WorkingSetpublic java.lang.Object getUserObject()
getUserObject in interface WorkingSetpublic ConnectionHolder getConnectionHolder()
getConnectionHolder in interface WorkingSetpublic boolean getWSRetainValues()
WorkingSet
getWSRetainValues in interface WorkingSetpublic void setWSRetainValues(boolean val)
WorkingSet
setWSRetainValues in interface WorkingSetpublic boolean getWSRestoreValues()
WorkingSet
getWSRestoreValues in interface WorkingSetpublic void setWSRestoreValues(boolean val)
WorkingSet
setWSRestoreValues in interface WorkingSetpublic boolean getWSRollBackOnly()
TransactionalWorkingSet
getWSRollBackOnly in interface TransactionalWorkingSetpublic void setWSRollBackOnly(boolean val)
TransactionalWorkingSet
setWSRollBackOnly in interface TransactionalWorkingSet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||