org.objectweb.perseus.persistence.lib
Class BasicWorkingSet
java.lang.Object
org.objectweb.perseus.persistence.lib.BasicWorkingSet
- BindingController, TransactionalWorkingSet, WorkingSet
public class BasicWorkingSet
extends java.lang.Object
It is an implementation of the WorkingSet interface. This implementation is
a Fractal component which needs a MonologFactory.
- S.Chassande-Barrioz, Y.Bersihand
logger
protected Logger logger
oid2state
protected LinkedHashMap oid2state
restoreValues
protected boolean restoreValues
retainValues
protected boolean retainValues
status
protected byte status
userObject
protected Object userObject
BasicWorkingSet
public BasicWorkingSet()
bind
public State bind(State state,
Object oid,
byte mode)
Attaches an entry to the transaction.
- bind in interface WorkingSet
state
- the state which must be attached to the transactionmode
- see WorkingSet.READ_INTENTION WorkingSet.WRITE_INTENTION WorkingSet.UNKNOWN_INTENTION
- the old state value in the cache
bindFc
public void bindFc(String c,
Object s)
clear
public void clear()
Removes all entries of the transaction.
- clear in interface WorkingSet
entries
public Set entries()
- entries in interface WorkingSet
- the collection of entry attached to the transaction.
getUserObject
public Object getUserObject()
- getUserObject in interface WorkingSet
- the user object linked to the working set
listFc
public String[] listFc()
lookup
public State lookup(Object oid)
- lookup in interface WorkingSet
- the entry attached to the transaction weither its identifier
lookupFc
public Object lookupFc(String c)
oids
public Set oids()
- oids in interface WorkingSet
- the list of entries attached to the working set
unbind
public boolean unbind(Object oid)
Dettaches an entry from the transaction.
- unbind in interface WorkingSet
oid
- is the identifier of entry which must be detattached from the transaction
unbindFc
public void unbindFc(String c)
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.