Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » kernel » [javadoc | source]
org.apache.openjpa.kernel
class: ManagedCache [javadoc | source]
java.lang.Object
   org.apache.openjpa.kernel.ManagedCache

All Implemented Interfaces:
    Serializable

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