org.apache.jdo.impl.state
Class StateManagerFactory

java.lang.Object
  extended byorg.apache.jdo.impl.state.StateManagerFactory

public class StateManagerFactory
extends java.lang.Object

This class is responsible for creation of new instances of a StateManagerInternal. Called by CacheManagerImpl on call to makePersistent a Transient istance, or as a result of a StoreManager request to process query or navigation.

Version:
1.0
Author:
mvatkina

Constructor Summary
StateManagerFactory()
           
 
Method Summary
static StateManagerInternal newInstance(java.lang.Object userOid, java.lang.Object internalOid, PersistenceManagerInternal pm, java.lang.Class clazz)
          Returns a new instance of a StateManagerInternal.
static StateManagerInternal newInstance(javax.jdo.spi.PersistenceCapable pc, PersistenceManagerInternal pm)
          Returns a new instance of a StateManagerInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateManagerFactory

public StateManagerFactory()
Method Detail

newInstance

public static StateManagerInternal newInstance(javax.jdo.spi.PersistenceCapable pc,
                                               PersistenceManagerInternal pm)
Returns a new instance of a StateManagerInternal

Parameters:
pc - instance of PersistenceCapable
pm - instance of PersistenceManagerInternal associated with this request

newInstance

public static StateManagerInternal newInstance(java.lang.Object userOid,
                                               java.lang.Object internalOid,
                                               PersistenceManagerInternal pm,
                                               java.lang.Class clazz)
Returns a new instance of a StateManagerInternal. Called by the StoreManager to process query results.

Parameters:
userOid - User provided Object Id
internalOid - Object Id that can be used internally
pm - instance of PersistenceManagerInternal associated with this request
clazz - Class type for the PersistenceCapable to be created