class ManagedCache
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ManagedCache(BrokerImpl broker)
Constructor; supply primary cache map.
|
Modifier and Type | Method and Description |
---|---|
void |
add(StateManagerImpl sm)
Call this method when a new state manager initializes itself.
|
void |
assignObjectId(java.lang.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(java.lang.Object id,
StateManagerImpl sm)
A new instance has committed; recache under permanent oid.
|
java.util.Collection<StateManagerImpl> |
copy()
Return a copy of all cached persistent objects.
|
(package private) void |
dirtyCheck() |
StateManagerImpl |
getById(java.lang.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(java.lang.Object id,
StateManagerImpl sm)
Remove the given state manager from the cache when it transitions
to transient.
|
ManagedCache(BrokerImpl broker)
public StateManagerImpl getById(java.lang.Object oid, boolean allowNew)
public void add(StateManagerImpl sm)
public void remove(java.lang.Object id, StateManagerImpl sm)
public void persist(StateManagerImpl sm)
public void assignObjectId(java.lang.Object id, StateManagerImpl sm)
public void commitNew(java.lang.Object id, StateManagerImpl sm)
public java.util.Collection<StateManagerImpl> copy()
public void clear()
public void clearNew()
void dirtyCheck()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.