|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A StateManager is used by the PersistenceManager and the ConcurrencyManager in order to manage the life cycle of cache entries and their states. This management concerns the java life cycle of the state instance (create, destroy) and the status (dirty, new, deleted, ...). This interface is implemented by the Personality using the persistence framework of Perseus.
Method Summary | |
State |
createState(CacheEntry ce)
Creates a new State. |
void |
destroyState(State state)
Removes a state. |
State |
getReferenceState(CacheEntry ce)
|
boolean |
isBound(CacheEntry ce)
|
boolean |
isDirty(State state)
|
boolean |
isExported(State state)
|
boolean |
isFlushed(State state)
|
boolean |
isUnexported(State state)
|
void |
makeClean(State state)
Marks the status of the state to 'clean' (non modified). |
void |
makeDirty(State state)
Marks the status of the state to 'dirty' (modified). |
void |
makeExported(State state)
Marks the status of the state to 'exported' (created). |
void |
makeFlushed(State state)
Marks the status of the state to 'flushed' (written on data support). |
void |
makeUnbound(CacheEntry ce)
A persistent object has been removed or evicted from the cache, then it must be marked as non persistent |
void |
makeUnexported(State state)
Marks the status of the state to 'unexported' (deleted). |
void |
setReferenceState(CacheEntry ce,
State state)
Assignes the reference state to a cache entry |
Method Detail |
public State createState(CacheEntry ce)
public State getReferenceState(CacheEntry ce)
ce
- is the cache entry when the reference state is asked
public void setReferenceState(CacheEntry ce, State state)
ce
- is the cache entry which the reference state must be changedstate
- is the new value of the reference state. If this parameter
is null, that means the CacheEntry does not have a state in memory, it
is hollow.public void destroyState(State state)
state
- the state to destroypublic void makeUnexported(State state)
public boolean isUnexported(State state)
public void makeExported(State state)
public boolean isExported(State state)
public void makeDirty(State state)
public boolean isDirty(State state)
public void makeClean(State state)
public void makeFlushed(State state)
state
- public boolean isFlushed(State state)
public void makeUnbound(CacheEntry ce)
ce
- is the cache entry referenced the persistent object to unbindpublic boolean isBound(CacheEntry ce)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |