org.objectweb.speedo.runtime.concurrence.optimistic
Class BasicSpeedoAccessor
java.lang.Object
|
+--org.objectweb.speedo.runtime.concurrence.optimistic.BasicSpeedoAccessor
- All Implemented Interfaces:
- SpeedoAccessor
- public abstract class BasicSpeedoAccessor
- extends java.lang.Object
- implements SpeedoAccessor
This class is the basic implementation of the SpeedoAccessor interface. It
is used at the top of the XXXFields class inheritance.
- Author:
- S.Chassande-Barrioz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jdoStatus
protected byte jdoStatus
proxy
protected SpeedoProxy proxy
tx
protected Transaction tx
BasicSpeedoAccessor
public BasicSpeedoAccessor()
getCeObject
public java.lang.Object getCeObject()
getCeIdentifier
public java.lang.Object getCeIdentifier()
fixCe
public void fixCe()
unfixCe
public void unfixCe()
throws org.objectweb.perseus.cache.api.UnFixProtocolException
getCeFixCount
public int getCeFixCount()
getCeAge
public long getCeAge()
setCeAge
public void setCeAge(long l)
getMemoryInstance
public java.lang.Object getMemoryInstance()
jdoChangeStatus
public void jdoChangeStatus(byte action)
- Changes the status of this object
- Specified by:
jdoChangeStatus
in interface SpeedoAccessor
- Parameters:
action
- the action that may change the status- See Also:
LifeCycle
jdoGetStatus
public byte jdoGetStatus()
- Gets the current status of this object
- Specified by:
jdoGetStatus
in interface SpeedoAccessor
- Returns:
- the current state in the life cycle
- See Also:
LifeCycle
jdoSetStatus
public void jdoSetStatus(byte newValue)
- Forces the new value of the status
- Specified by:
jdoSetStatus
in interface SpeedoAccessor
- Parameters:
newValue
- the new status of this object- See Also:
LifeCycle
jdoGetSpeedoProxy
public SpeedoProxy jdoGetSpeedoProxy()
- Specified by:
jdoGetSpeedoProxy
in interface SpeedoAccessor
- Returns:
- The SpeedoProxy attached to this state representation.
jdoSetSpeedoProxy
public void jdoSetSpeedoProxy(SpeedoProxy sp)
- It assignes the SpeedoProxy attached to this state representation.
- Specified by:
jdoSetSpeedoProxy
in interface SpeedoAccessor
jdoGetTransaction
public Transaction jdoGetTransaction()
- Specified by:
jdoGetTransaction
in interface SpeedoAccessor
- Following copied from interface:
org.objectweb.speedo.api.SpeedoAccessor
- Returns:
- The context associated to the accessor.
jdoSetTransaction
public void jdoSetTransaction(Transaction tx)
- Description copied from interface:
SpeedoAccessor
- Assignes the context with which the accessor is bound.
- Specified by:
jdoSetTransaction
in interface SpeedoAccessor
- Following copied from interface:
org.objectweb.speedo.api.SpeedoAccessor
- Parameters:
tx
- is the context