Method Summary |
|
public void | addLifecycleListener(LifecycleListener listener, Class[] classes) This PersistenceManagerFactory method adds the listener to the list of
lifecycle event listeners set as the initial listeners for each
PersistenceManager created by this PersistenceManagerFactory. |
public void | clearConnectionPool(String datastore) Close all connections in the pool for the datastore. |
public void | doSystemGC() Call System.gc() in the VM that the JDO Genie server associated with
this PMF is running in. |
public void | evict(Object oid) Evict all information for an OID from the PMF wide cache. |
public void | evictAll(Object[] oids) Evict all information for an array of OIDs from the PMF wide cache. |
public void | evictAll(Collection oids) Evict all information for a collection of OIDs from the PMF wide cache. |
public void | evictAll(Class cls, boolean includeSubclasses) Evict all information for all JDO instances of a Class from the PMF wide
cache. |
public void | evictAll() Evict all JDO instances from the PMF wide cache. |
public Class | getClassForID(int classid) Get the Class for the classid. |
public Class | getClassForIndex(int index) Get the Class for a class index. |
public Class | getClassForJdbcID(Class baseClass, Object jdbcClassid) Get the Class for the jdbc-class-id for a class in the heirachy
starting at baseClass. |
public int | getClassID(Class cls) Get the classid for the class. |
public int | getClassIndex(Class cls) Get the class index for the class. |
public int[] | getClassIndexes(Class[] classes, boolean includeSubclasses) Convert an array of Class'es into their class indexes. |
public DataStoreInfo | getDataStoreInfo(String datastore) This method is for internal testing. |
public Object | getEntityManagerFactory() Create a ejb3 EntityManagerFactory. |
public Object | getJdbcClassID(Class cls) Get the JDBC classid for the class. |
public Connection | getJdbcConnection(String datastore) Obtain a JDBC connection from the pool for the datastore. |
public Metric[] | getMetrics() Get all the performance metrics configured on the server. |
public MetricSnapshotPacket | getMostRecentMetricSnapshot(int lastId) Get the most recent performance metric snapshot since the one with ID
of lastId. |
public MetricSnapshotPacket | getNewMetricSnapshots(int lastId) Get all performance metric snapshots newer that lastId or all
available data if lastId is 0. |
public LogEvent[] | getNewPerfEvents(int lastId) Get all performance events newer than lastId or all events if lastId is
0. |
public List | getPersistenceManagers() Get status information on all active PersistenceManager's. |
public int | getPmCacheRefType() Get the type of reference used to reference instances in the local
PM cache by PMs returned by this factory. |
public PmfStatus | getPmfStatus() Get server status information bean. |
public RemoteClientStatus[] | getRemoteClients() Get status information on all active remote clients. |
public PropertyInfo | getServerConfiguration() Get a tree of all the configurable properties of the server and their
current values. |
public Object | getServerUserObject() Get the user object associated with the JDO Genie server. |
public int | getUserMetric(String name) Get the value of the named user-defined metric. |
public Object | getUserObject() Get the user object. |
public void | incUserMetric(String name, int delta) Add delta to the value of the named user-defined metric. |
public boolean | isAllowPmCloseWithTxOpen() Is closing a PersistenceManager with a active tx is allowed? The
default is false. |
public boolean | isCheckModelConsistencyOnCommit() Are bidirectional relationships (one-to-many, many-to-many) checked for
consistency on commit for new PersistenceManagers? The default is false. |
public boolean | isInCache(Object oid) Is the OID in the PMF wide cache? Note that it may already be gone
even if this call returns true. |
public boolean | isInterceptDfgFieldAccess() Is access to loaded default fetch group fields always intercepted?
See the "Cache Management" chapter of the manual for more information
on this flag. |
public void | logEvent(int level, String description, int ms) Log a user defined event. |
public void | registerSCOPersistenceDelegates(Object encoder) Configure the encoder with PersistenceDelegate's for JDO Genie SCO
instances. |
public void | removeLifecycleListener(LifecycleListener listener) This PersistenceManagerFactory method removes the listener from the
list of event listeners set as the initial listeners for each
PersistenceManager created by this PersistenceManagerFactory. |
public void | setAllowPmCloseWithTxOpen(boolean allowed) Allow the closing of a PersistenceManager with active tx. |
public void | setCheckModelConsistencyOnCommit(boolean on) Enable or disable commit time consistency checking for bidirectional
relationships (one-to-many, many-to-many) in newly created
PersistenceManagers. |
public void | setInterceptDfgFieldAccess(boolean interceptDfgFieldAccess) Control interception of loaded default fetch group fields. |
public void | setPmCacheRefType(int pmCacheRefType) Set the type of reference used to reference instances in the local
PM cache by PMs returned by this factory. |
public String | setServerProperty(String[] beanPath, String value) Change a property on a component of the server (e.g. |
public void | setServerUserObject(Object o) Associate a user object with the JDO Genie server. |
public void | setUserMetric(String name, int value) Set the value of the named user-defined metric. |
public void | setUserObject(Object o) Associate a user object with this PMF. |
public void | shutdown() Shutdown the JDO Genie server. |