|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.ManagedCache
class ManagedCache
Cache of managed objects. Must be static for serialization reasons.
Constructor Summary | |
---|---|
ManagedCache(BrokerImpl broker)
Constructor; supply primary cache map. |
Method Summary | |
---|---|
void |
add(StateManagerImpl sm)
Call this method when a new state manager initializes itself. |
void |
assignObjectId(Object id,
StateManagerImpl sm)
A new instance has just been assigned a permanent oid. |
void |
clear()
Clear the cache. |
void |
clearNew()
Clear new instances without permanent oids. |
void |
commitNew(Object id,
StateManagerImpl sm)
A new instance has committed; recache under permanent oid. |
Collection |
copy()
Return a copy of all cached persistent objects. |
(package private) void |
dirtyCheck()
|
StateManagerImpl |
getById(Object oid,
boolean allowNew)
Return the instance for the given oid, optionally allowing new instances. |
void |
persist(StateManagerImpl sm)
An embedded or nonpersistent managed instance has been persisted. |
void |
remove(Object id,
StateManagerImpl sm)
Remove the given state manager from the cache when it transitions to transient. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ManagedCache(BrokerImpl broker)
Method Detail |
---|
public StateManagerImpl getById(Object oid, boolean allowNew)
public void add(StateManagerImpl sm)
public void remove(Object id, StateManagerImpl sm)
public void persist(StateManagerImpl sm)
public void assignObjectId(Object id, StateManagerImpl sm)
public void commitNew(Object id, StateManagerImpl sm)
public Collection copy()
public void clear()
public void clearNew()
void dirtyCheck()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |