|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 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 |
Constructor Summary | |
BasicWorkingSet()
|
Method Summary | |
void |
bind(State state,
java.lang.Object oid)
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()
|
boolean |
getWSRetainValues()
|
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)
|
void |
setWSRetainValues(boolean val)
|
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
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 WorkingSet
TransactionalPersistenceManager
interface.public void setStatus(byte status) throws PersistenceException
WorkingSet
setStatus
in interface WorkingSet
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)
lookup
in interface WorkingSet
public void bind(State state, java.lang.Object oid)
bind
in interface WorkingSet
state
- the state which must be attached to the transactionoid
- is the id of the corresponding objectpublic boolean unbind(java.lang.Object oid)
unbind
in interface WorkingSet
oid
- is the identifier of entry which must be detattached from the transaction
public void clear()
clear
in interface WorkingSet
public java.util.Set entries()
entries
in interface WorkingSet
public java.util.Set oids()
oids
in interface WorkingSet
public java.lang.Object getUserObject()
getUserObject
in interface WorkingSet
public ConnectionHolder getConnectionHolder()
getConnectionHolder
in interface WorkingSet
public boolean getWSRetainValues()
getWSRetainValues
in interface WorkingSet
public void setWSRetainValues(boolean val)
setWSRetainValues
in interface WorkingSet
public boolean getWSRestoreValues()
getWSRestoreValues
in interface WorkingSet
public void setWSRestoreValues(boolean val)
setWSRestoreValues
in interface WorkingSet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |