|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.mim.lib.BasicSpeedoAccessor
This class is the basic implementation of the SpeedoAccessor interface. It is used at the top of the XXXFields class inheritance.
Field Summary | |
byte |
detachedStatus
|
boolean |
hasBeenFlush
|
protected byte |
jdoStatus
This timestamp is allocated: - before attach - before detach - before commit |
SpeedoProxy |
proxy
|
Constructor Summary | |
BasicSpeedoAccessor()
|
|
BasicSpeedoAccessor(SpeedoProxy proxy)
|
Method Summary | |
CacheEntry |
getCacheEntry()
|
byte |
getDetachedStatus()
Gets the current status of this detached object |
java.lang.Object |
getMemoryInstance()
|
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)
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 |
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). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected byte jdoStatus
public byte detachedStatus
public SpeedoProxy proxy
public boolean hasBeenFlush
Constructor Detail |
public BasicSpeedoAccessor()
public BasicSpeedoAccessor(SpeedoProxy proxy)
Method Detail |
public CacheEntry getCacheEntry()
public java.lang.Object getMemoryInstance()
public void jdoChangeStatus(byte action)
jdoChangeStatus
in interface SpeedoAccessor
action
- the action that may change the statusLifeCycle
public byte jdoGetStatus()
jdoGetStatus
in interface SpeedoAccessor
LifeCycle
public void jdoSetStatus(byte newValue)
jdoSetStatus
in interface SpeedoAccessor
newValue
- the new status of this objectLifeCycle
public byte getDetachedStatus()
SpeedoAccessor
getDetachedStatus
in interface SpeedoAccessor
public void setDetachedStatus(byte newValue)
SpeedoAccessor
setDetachedStatus
in interface SpeedoAccessor
newValue
- the new status of this objectpublic SpeedoProxy jdoGetSpeedoProxy()
jdoGetSpeedoProxy
in interface SpeedoAccessor
public void jdoSetSpeedoProxy(SpeedoProxy sp)
jdoSetSpeedoProxy
in interface SpeedoAccessor
public void prepareWrite()
SpeedoAccessor
prepareWrite
in interface SpeedoAccessor
public void workingSetClosed()
SpeedoAccessor
workingSetClosed
in interface SpeedoAccessor
public boolean jdoHasBeenFlush()
SpeedoAccessor
jdoHasBeenFlush
in interface SpeedoAccessor
public void jdoSetFlushed(boolean val)
SpeedoAccessor
jdoSetFlushed
in interface SpeedoAccessor
val
- is the boolean which must be assigned.public long getTimeStamp()
SpeedoAccessor
getTimeStamp
in interface SpeedoAccessor
public void setTimeStamp(long ts)
setTimeStamp
in interface SpeedoAccessor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |