org.objectweb.speedo.mim.lib
Class BasicSpeedoAccessor

java.lang.Object
  extended byorg.objectweb.speedo.mim.lib.BasicSpeedoAccessor
All Implemented Interfaces:
java.io.Serializable, SpeedoAccessor
Direct Known Subclasses:
GenClassAccessor

public 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
See Also:
Serialized Form

Field Summary
 boolean hasBeenFlush
           
 byte jdoStatus
           
 SpeedoProxy proxy
           
 
Constructor Summary
BasicSpeedoAccessor()
           
BasicSpeedoAccessor(SpeedoProxy proxy)
           
 
Method Summary
 CacheEntry getCacheEntry()
           
 java.lang.Object getMemoryInstance()
           
 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)
          It 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 workingSetClosed()
          The context has been closed (ex: transaction end).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdoStatus

public byte jdoStatus

proxy

public SpeedoProxy proxy

hasBeenFlush

public boolean hasBeenFlush
Constructor Detail

BasicSpeedoAccessor

public BasicSpeedoAccessor()

BasicSpeedoAccessor

public BasicSpeedoAccessor(SpeedoProxy proxy)
Method Detail

getCacheEntry

public CacheEntry getCacheEntry()

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

prepareWrite

public void prepareWrite()
Description copied from interface: SpeedoAccessor
Prepare to write (relations consistency management)

Specified by:
prepareWrite in interface SpeedoAccessor

workingSetClosed

public void workingSetClosed()
Description copied from interface: SpeedoAccessor
The context has been closed (ex: transaction end).

Specified by:
workingSetClosed in interface SpeedoAccessor

jdoHasBeenFlush

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

Specified by:
jdoHasBeenFlush in interface SpeedoAccessor

jdoSetFlushed

public void jdoSetFlushed(boolean val)
Description copied from interface: SpeedoAccessor
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).

Specified by:
jdoSetFlushed in interface SpeedoAccessor
Parameters:
val - is the boolean which must be assigned.