org.objectweb.speedo.mim.api
Interface SpeedoAccessor

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BasicSpeedoAccessor

public interface SpeedoAccessor
extends java.io.Serializable

This interface a state of an user instance.

Author:
S.Chassande-Barrioz

Method Summary
 byte getDetachedStatus()
          Gets the current status of this detached object
 long getTimeStamp()
          Version management is performed via the use of timestamps.
 void jdoChangeStatus(byte action)
          Changes the status of this object
 SpeedoProxy jdoGetSpeedoProxy()
           
 byte jdoGetStatus()
          Gets the current status of this object
 boolean jdoHasBeenFlush()
          indicates if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close).
 void jdoSetFlushed(boolean val)
          Assignates a boolean value to indicate if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close).
 void jdoSetSpeedoProxy(SpeedoProxy sp)
          Assignes the SpeedoProxy attached to this state representation.
 void jdoSetStatus(byte newValue)
          Forces the new value of the status
 void prepareWrite()
          Prepare to write (relations consistency management)
 void setDetachedStatus(byte newValue)
          Forces the new value of the detached status
 void setTimeStamp(long ts)
           
 void workingSetClosed()
          The context has been closed (ex: transaction end).
 

Method Detail

jdoChangeStatus

public void jdoChangeStatus(byte action)
Changes the status of this object

Parameters:
action - the action that may change the status
See Also:
LifeCycle

jdoGetStatus

public byte jdoGetStatus()
Gets the current status of this object

Returns:
the current state in the life cycle
See Also:
LifeCycle

jdoSetStatus

public void jdoSetStatus(byte newValue)
Forces the new value of the status

Parameters:
newValue - the new status of this object
See Also:
LifeCycle

getTimeStamp

public long getTimeStamp()
Version management is performed via the use of timestamps.


setTimeStamp

public void setTimeStamp(long ts)

getDetachedStatus

public byte getDetachedStatus()
Gets the current status of this detached object

Returns:
the current state in the life cycle

setDetachedStatus

public void setDetachedStatus(byte newValue)
Forces the new value of the detached status

Parameters:
newValue - the new status of this object

jdoGetSpeedoProxy

public SpeedoProxy jdoGetSpeedoProxy()
Returns:
The SpeedoProxy attached to this state representation.

jdoSetSpeedoProxy

public void jdoSetSpeedoProxy(SpeedoProxy sp)
Assignes the SpeedoProxy attached to this state representation.


prepareWrite

public void prepareWrite()
Prepare to write (relations consistency management)


workingSetClosed

public void workingSetClosed()
The context has been closed (ex: transaction end).


jdoHasBeenFlush

public boolean jdoHasBeenFlush()
indicates if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close).


jdoSetFlushed

public void jdoSetFlushed(boolean val)
Assignates a boolean value to indicate if the object has been flushed on the support in a writing before the end of the working set (commit | rollback | close).

Parameters:
val - is the boolean which must be assigned.