public class JDOPersistenceManagerFactory extends Object implements javax.jdo.PersistenceManagerFactory, ObjectFactory, Referenceable
Serialisation When a PMF is serialised its persistence properties are serialised with it, but dynamic state (fetch groups, listeners, L2 cache, etc) are not serialised with it.
Modifier and Type | Field and Description |
---|---|
protected Map<javax.jdo.listener.InstanceLifecycleListener,LifecycleListenerForClass> |
lifecycleListeners
Lifecycle Listeners.
|
protected org.datanucleus.PersistenceNucleusContext |
nucleusContext
The context that this factory uses.
|
Constructor and Description |
---|
JDOPersistenceManagerFactory()
Constructs a new JDOPersistenceManagerFactory.
|
JDOPersistenceManagerFactory(Map props)
Constructs a new JDOPersistenceManagerFactory for the specified persistence properties.
|
JDOPersistenceManagerFactory(org.datanucleus.metadata.PersistenceUnitMetaData pumd,
Map overrideProps)
Constructor for a PMF for the specified persistence-unit with optional overriding properties.
|
Modifier and Type | Method and Description |
---|---|
void |
addFetchGroups(javax.jdo.FetchGroup... groups) |
void |
addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener,
Class[] classes)
Method to add lifecycle listeners for particular classes.
|
void |
addSequenceForFactoryClass(String factoryClassName,
javax.jdo.datastore.Sequence sequence)
Method to register a sequence for a particular factory class.
|
protected void |
assertConfigurable()
Asserts that a change to a configuration property is allowed.
|
protected void |
assertIsOpen()
Asserts that the PMF is open.
|
static void |
checkJDOPermission(javax.jdo.spi.JDOPermission jdoPermission) |
void |
close()
Close this PersistenceManagerFactory.
|
protected static JDOPersistenceManagerFactory |
createPersistenceManagerFactory(Map props)
Convenience method to create the PMF, check whether we should hand out a singleton, and if all ok then freeze it for use.
|
boolean |
equals(Object obj)
Equality operator.
|
protected void |
finalize() |
protected void |
freezeConfiguration()
Freezes the current configuration.
|
String |
getCatalog()
Accessor for the catalog to use for this persistence factory.
|
protected org.datanucleus.Configuration |
getConfiguration() |
String |
getConnectionDriverName()
Get the driver name for the data store connection.
|
Object |
getConnectionFactory()
Get the data store connection factory.
|
Object |
getConnectionFactory2()
Get the second data store connection factory.
|
String |
getConnectionFactory2Name()
Get the name for the second data store connection factory.
|
String |
getConnectionFactoryName()
Get the name for the data store connection factory.
|
String |
getConnectionPassword()
Get the password for the data store connection.
|
String |
getConnectionURL()
Get the URL for the data store connection.
|
String |
getConnectionUserName()
Get the user name for the data store connection.
|
boolean |
getCopyOnAttach()
Accessor for the CopyOnAttach setting.
|
javax.jdo.datastore.DataStoreCache |
getDataStoreCache()
Accessor for the DataStore (level 2) Cache
|
Integer |
getDatastoreReadTimeoutMillis()
Accessor for the datastore read timeout interval.
|
Integer |
getDatastoreWriteTimeoutMillis()
Accessor for the datastore write timeout interval.
|
boolean |
getDetachAllOnCommit()
Accessor for the DetachAllOnCommit setting.
|
javax.jdo.FetchGroup |
getFetchGroup(Class cls,
String name) |
Set<javax.jdo.FetchGroup> |
getFetchGroups() |
boolean |
getIgnoreCache()
Get the default IgnoreCache setting for all PersistenceManager
instances obtained from this factory.
|
List<LifecycleListenerForClass> |
getLifecycleListenerSpecifications()
Deprecated.
|
Collection<Class> |
getManagedClasses()
Accessor for the classes that are managed (have metadata loaded).
|
String |
getMapping()
Get the name for any mapping, used in retrieving metadata files for ORM/Query data.
|
javax.jdo.metadata.TypeMetadata |
getMetadata(String className)
Method to return the (class) metadata object for the specified class, if there is
metadata defined for that class.
|
boolean |
getMultithreaded()
Get the default Multithreaded setting for all PersistenceManager
instances obtained from this factory.
|
String |
getName()
Accessor for the name of the persistence factory (if any).
|
boolean |
getNontransactionalRead()
Get the default NontransactionalRead setting for all
PersistenceManager instances obtained from this factory.
|
boolean |
getNontransactionalWrite()
Get the default NontransactionalWrite setting for all
PersistenceManager instances obtained from this factory.
|
boolean |
getNontransactionalWriteAutoCommit()
Get the default auto-commit setting for non-tx writes for all
PersistenceManager instances obtained from this factory.
|
org.datanucleus.PersistenceNucleusContext |
getNucleusContext() |
Object |
getObjectInstance(Object obj,
Name name,
Context ctx,
Hashtable env)
Create a PMF using the (JNDI) location or reference information specified.
|
boolean |
getOptimistic()
Get the default Optimistic setting for all PersistenceManager
instances obtained from this factory.
|
javax.jdo.PersistenceManager |
getPersistenceManager()
Get an instance of PersistenceManager from this factory.
|
javax.jdo.PersistenceManager |
getPersistenceManager(String userName,
String password)
Get an instance of PersistenceManager from this factory.
|
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(Map overridingProps)
Return a new PersistenceManagerFactory with options set according to the given Properties.
|
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(Map overrides,
Map props)
Return a new PersistenceManagerFactory with options set according to the given properties and given overrides.
|
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(Properties overridingProps)
Return a new PersistenceManagerFactory with options set according to the given Properties.
|
javax.jdo.PersistenceManager |
getPersistenceManagerProxy()
Accessor for the PersistenceManager proxy object
|
Map<String,Object> |
getPersistenceProperties()
Accessor for the persistence properties.
|
String |
getPersistenceUnitName()
Accessor for the name of the persistence unit
|
String |
getPersistenceXmlFilename()
Accessor for the filename of the persistence.xml file.
|
ClassLoader |
getPrimaryClassLoader()
Accessor for the primary class loader
|
Properties |
getProperties()
Return non-configurable properties of this PersistenceManagerFactory.
|
JDOQueryCache |
getQueryCache()
Accessor for the query results cache.
|
org.datanucleus.store.query.cache.QueryDatastoreCompilationCache |
getQueryDatastoreCompilationCache()
Accessor for the query datastore compilation cache.
|
org.datanucleus.store.query.cache.QueryCompilationCache |
getQueryGenericCompilationCache()
Accessor for the query generic compilation cache.
|
boolean |
getReadOnly()
Get the default readOnly setting for all PersistenceManager
instances obtained from this factory.
|
Reference |
getReference()
Retrieves the (JNDI) reference of this PMF object.
|
boolean |
getRestoreValues()
Get the default RestoreValues setting for all PersistenceManager
instances obtained from this factory.
|
boolean |
getRetainValues()
Get the default RetainValues setting for all PersistenceManager
instances obtained from this factory.
|
String |
getSchema()
Accessor for the schema to use for this persistence factory.
|
javax.jdo.datastore.Sequence |
getSequenceForFactoryClass(String factoryClassName)
Accessor for the sequence for a factory class.
|
String |
getServerTimeZoneID()
Accessor for the timezone "id" of the datastore server (if any).
|
String |
getTransactionIsolationLevel()
Accessor for the transaction isolation level default.
|
String |
getTransactionType()
Accessor for the transaction type to use with this persistence factory.
|
int |
hashCode() |
protected void |
initialiseMetaData(org.datanucleus.metadata.PersistenceUnitMetaData pumd) |
boolean |
isClosed()
Utility to return whether the factory is closed or not.
|
protected boolean |
isConfigurable()
Accessor for whether this is still configurable (can set more properties etc).
|
javax.jdo.metadata.JDOMetadata |
newMetadata()
Method to return a new metadata object that can be subsequently modified
and registered with the persistence process using the method
registerMetadata(javax.jdo.metadata.JDOMetadata) . |
protected JDOPersistenceManager |
newPM(JDOPersistenceManagerFactory jdoPmf,
String userName,
String password) |
protected void |
processLifecycleListenersFromProperties(Map props)
Convenience method to extract lifecycle listeners that are specified by way of persistence properties.
|
void |
registerMetadata(javax.jdo.metadata.JDOMetadata metadata)
Method to register the supplied metadata with the persistence process managed by this
PersistenceManagerFactory . |
void |
releasePersistenceManager(JDOPersistenceManager pm)
Remove a PersistenceManager from the cache.
|
void |
removeAllFetchGroups() |
void |
removeFetchGroups(javax.jdo.FetchGroup... groups) |
void |
removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener)
Method to remove a lifecycle listener.
|
void |
setCatalog(String catalog)
Mutator for the catalog to use for this persistence factory.
|
void |
setConnectionDriverName(String driverName)
Set the driver name for the data store connection.
|
void |
setConnectionFactory(Object connectionFactory)
Set the data store connection factory.
|
void |
setConnectionFactory2(Object connectionFactory)
Set the second data store connection factory.
|
void |
setConnectionFactory2Name(String connectionFactoryName)
Set the name for the second data store connection factory.
|
void |
setConnectionFactoryName(String connectionFactoryName)
Set the name for the data store connection factory.
|
void |
setConnectionPassword(String password)
Set the password for the data store connection.
|
void |
setConnectionURL(String url)
Set the URL for the data store connection.
|
void |
setConnectionUserName(String userName)
Set the user name for the data store connection.
|
void |
setCopyOnAttach(boolean flag)
Mutator for the CopyOnAttach setting.
|
void |
setDatastoreReadTimeoutMillis(Integer timeout)
Mutator for the timeout to use for datastore reads.
|
void |
setDatastoreWriteTimeoutMillis(Integer timeout)
Mutator for the timeout to use for datastore writes.
|
void |
setDetachAllOnCommit(boolean flag)
Mutator for the DetachAllOnCommit setting.
|
void |
setIgnoreCache(boolean flag)
Set the default IgnoreCache setting for all PersistenceManager
instances obtained from this factory.
|
protected void |
setIsNotConfigurable()
Method to set that this is no longer configurable.
|
void |
setMapping(String mapping)
Set the name for any mapping, used in searching for ORM/Query metadata files.
|
void |
setMultithreaded(boolean flag)
Set the default Multithreaded setting for all PersistenceManager
instances obtained from this factory.
|
void |
setName(String name)
Mutator for the name of the persistence factory.
|
void |
setNontransactionalRead(boolean flag)
Set the default NontransactionalRead setting for all
PersistenceManager instances obtained from this factory.
|
void |
setNontransactionalWrite(boolean flag)
Set the default NontransactionalWrite setting for all
PersistenceManager instances obtained from this factory.
|
void |
setNontransactionalWriteAutoCommit(boolean flag)
Set the default for whether to auto-commit non-tx writes for all
PersistenceManager instances obtained from this factory.
|
void |
setOptimistic(boolean flag)
Set the default Optimistic setting for all PersistenceManager
instances obtained from this factory.
|
void |
setPersistenceProperties(Map<String,Object> props)
Set the properties for this configuration.
|
void |
setPersistenceUnitName(String name)
Mutator for the name of the persistence unit.
|
void |
setPersistenceXmlFilename(String name)
Mutator for the filename of the persistence.xml file.
|
void |
setPrimaryClassLoader(ClassLoader loader)
Mutator to set the primary class loader.
|
void |
setReadOnly(boolean flag)
Set the readOnly setting for all PersistenceManager
instances obtained from this factory.
|
void |
setRestoreValues(boolean flag)
Set the default RestoreValues setting for all PersistenceManager
instances obtained from this factory.
|
void |
setRetainValues(boolean flag)
Set the default RetainValues setting for all PersistenceManager
instances obtained from this factory.
|
void |
setSchema(String schema)
Mutator for the schema to use for this persistence factory.
|
void |
setServerTimeZoneID(String id)
Mutator for the timezone id of the datastore server.
|
void |
setTransactionIsolationLevel(String level)
Set the default isolation level for transactions.
|
void |
setTransactionType(String type)
Mutator for the transaction type to use for this persistence factory.
|
Collection<String> |
supportedOptions()
The application can determine from the results of this method which optional features, and which query languages are supported by the JDO implementation.
|
void |
unmanageClass(String className)
Method to remove the specified class from the classes that are being managed.
|
protected transient org.datanucleus.PersistenceNucleusContext nucleusContext
protected transient Map<javax.jdo.listener.InstanceLifecycleListener,LifecycleListenerForClass> lifecycleListeners
public JDOPersistenceManagerFactory()
public JDOPersistenceManagerFactory(org.datanucleus.metadata.PersistenceUnitMetaData pumd, Map overrideProps)
pumd
- The persistence unitoverrideProps
- Properties overriding/supplementing those in the persistence-unitpublic JDOPersistenceManagerFactory(Map props)
props
- Persistence propertiespublic static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(Properties overridingProps)
overridingProps
- The Properties to initialize the PersistenceManagerFactory with.JDOHelper.getPersistenceManagerFactory(java.util.Map)
public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(Map overridingProps)
overridingProps
- The Map of properties to initialize the PersistenceManagerFactory with.JDOHelper.getPersistenceManagerFactory(java.util.Map)
public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(Map overrides, Map props)
overrides
- Map of properties to override the supplied props (if any)props
- Map of properties to initialise the PMF withprotected static JDOPersistenceManagerFactory createPersistenceManagerFactory(Map props)
props
- The propertiespublic void close()
If the authorization check succeeds, check to see that all PersistenceManager instances obtained from this PersistenceManagerFactory have no active transactions. If any PersistenceManager instances have an active transaction, throw a JDOUserException, with one nested JDOUserException for each PersistenceManager with an active Transaction.
If there are no active transactions, then close all PersistenceManager instances obtained from this PersistenceManagerFactory, mark this PersistenceManagerFactory as closed, disallow getPersistenceManager methods, and allow all other get methods. If a set method or getPersistenceManager method is called after close, then JDOUserException is thrown.
close
in interface javax.jdo.PersistenceManagerFactory
PersistenceManagerFactory.close()
public boolean isClosed()
isClosed
in interface javax.jdo.PersistenceManagerFactory
protected void processLifecycleListenersFromProperties(Map props)
props
- Persistence props.protected void initialiseMetaData(org.datanucleus.metadata.PersistenceUnitMetaData pumd)
protected void freezeConfiguration()
javax.jdo.JDOException
- if the configuration was invalid or inconsistent in some waypublic javax.jdo.PersistenceManager getPersistenceManager()
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager
in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.PersistenceManager getPersistenceManager(String userName, String password)
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager
in interface javax.jdo.PersistenceManagerFactory
userName
- the user name for the connectionpassword
- the password for the connectionprotected JDOPersistenceManager newPM(JDOPersistenceManagerFactory jdoPmf, String userName, String password)
public org.datanucleus.PersistenceNucleusContext getNucleusContext()
protected org.datanucleus.Configuration getConfiguration()
public boolean equals(Object obj)
public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable env) throws Exception
getObjectInstance
in interface ObjectFactory
obj
- The objectname
- Name of the object relative to the contextctx
- The contextenv
- properties used for creating the objectException
- If an error occurs generating the referenced objectpublic Reference getReference()
getReference
in interface Referenceable
public javax.jdo.PersistenceManager getPersistenceManagerProxy()
getPersistenceManagerProxy
in interface javax.jdo.PersistenceManagerFactory
public Properties getProperties()
getProperties
in interface javax.jdo.PersistenceManagerFactory
public Collection<String> supportedOptions()
supportedOptions
in interface javax.jdo.PersistenceManagerFactory
public void releasePersistenceManager(JDOPersistenceManager pm)
pm
- the PersistenceManager to be removed from cacheprotected void assertIsOpen()
javax.jdo.JDOUserException
- if it is already closedprotected void finalize() throws Throwable
public javax.jdo.datastore.DataStoreCache getDataStoreCache()
getDataStoreCache
in interface javax.jdo.PersistenceManagerFactory
public JDOQueryCache getQueryCache()
public org.datanucleus.store.query.cache.QueryCompilationCache getQueryGenericCompilationCache()
public org.datanucleus.store.query.cache.QueryDatastoreCompilationCache getQueryDatastoreCompilationCache()
public void setConnectionUserName(String userName)
setConnectionUserName
in interface javax.jdo.PersistenceManagerFactory
userName
- the user name for the data store connection.public void setConnectionPassword(String password)
setConnectionPassword
in interface javax.jdo.PersistenceManagerFactory
password
- the password for the data store connection.public void setConnectionURL(String url)
setConnectionURL
in interface javax.jdo.PersistenceManagerFactory
url
- the URL for the data store connection.public void setConnectionDriverName(String driverName)
setConnectionDriverName
in interface javax.jdo.PersistenceManagerFactory
driverName
- the driver name for the data store connection.public void setConnectionFactoryName(String connectionFactoryName)
setConnectionFactoryName
in interface javax.jdo.PersistenceManagerFactory
connectionFactoryName
- name of the data store connection factory.public void setConnectionFactory(Object connectionFactory)
setConnectionFactory
in interface javax.jdo.PersistenceManagerFactory
connectionFactory
- the data store connection factory.public void setConnectionFactory2Name(String connectionFactoryName)
setConnectionFactory2Name
in interface javax.jdo.PersistenceManagerFactory
connectionFactoryName
- name of the data store connection factory.public void setConnectionFactory2(Object connectionFactory)
setConnectionFactory2
in interface javax.jdo.PersistenceManagerFactory
connectionFactory
- the data store connection factory.public void setMultithreaded(boolean flag)
setMultithreaded
in interface javax.jdo.PersistenceManagerFactory
flag
- the default Multithreaded setting.public void setOptimistic(boolean flag)
setOptimistic
in interface javax.jdo.PersistenceManagerFactory
flag
- the default Optimistic setting.public void setRetainValues(boolean flag)
setRetainValues
in interface javax.jdo.PersistenceManagerFactory
flag
- the default RetainValues setting.public void setRestoreValues(boolean flag)
setRestoreValues
in interface javax.jdo.PersistenceManagerFactory
flag
- the default RestoreValues setting.public void setNontransactionalRead(boolean flag)
setNontransactionalRead
in interface javax.jdo.PersistenceManagerFactory
flag
- the default NontransactionalRead setting.public void setNontransactionalWrite(boolean flag)
setNontransactionalWrite
in interface javax.jdo.PersistenceManagerFactory
flag
- the default NontransactionalWrite setting.public void setNontransactionalWriteAutoCommit(boolean flag)
flag
- whether to auto-commit non-tx writespublic void setIgnoreCache(boolean flag)
setIgnoreCache
in interface javax.jdo.PersistenceManagerFactory
flag
- the default IgnoreCache setting.public void setDetachAllOnCommit(boolean flag)
setDetachAllOnCommit
in interface javax.jdo.PersistenceManagerFactory
flag
- the default DetachAllOnCommit setting.public void setCopyOnAttach(boolean flag)
setCopyOnAttach
in interface javax.jdo.PersistenceManagerFactory
flag
- the default CopyOnAttach setting.public void setMapping(String mapping)
setMapping
in interface javax.jdo.PersistenceManagerFactory
mapping
- the mapping namepublic void setCatalog(String catalog)
catalog
- Name of the catalogpublic void setSchema(String schema)
schema
- Name of the schemapublic void setDatastoreReadTimeoutMillis(Integer timeout)
setDatastoreReadTimeoutMillis
in interface javax.jdo.PersistenceManagerFactory
timeout
- Datastore read interval (millisecs)public void setDatastoreWriteTimeoutMillis(Integer timeout)
setDatastoreWriteTimeoutMillis
in interface javax.jdo.PersistenceManagerFactory
timeout
- Datastore write interval (millisecs)public void setTransactionType(String type)
setTransactionType
in interface javax.jdo.PersistenceManagerFactory
type
- Transaction typepublic void setPersistenceUnitName(String name)
setPersistenceUnitName
in interface javax.jdo.PersistenceManagerFactory
name
- Name of the persistence unitpublic void setPersistenceXmlFilename(String name)
name
- Filename of the persistence unitpublic void setName(String name)
setName
in interface javax.jdo.PersistenceManagerFactory
name
- Name of the persistence factory (if any)public void setServerTimeZoneID(String id)
setServerTimeZoneID
in interface javax.jdo.PersistenceManagerFactory
id
- Timezone Id to usepublic void setReadOnly(boolean flag)
setReadOnly
in interface javax.jdo.PersistenceManagerFactory
flag
- the default readOnly setting.public void setTransactionIsolationLevel(String level)
setTransactionIsolationLevel
in interface javax.jdo.PersistenceManagerFactory
level
- Levelpublic String getConnectionUserName()
getConnectionUserName
in interface javax.jdo.PersistenceManagerFactory
public String getConnectionPassword()
public String getConnectionURL()
getConnectionURL
in interface javax.jdo.PersistenceManagerFactory
public String getConnectionDriverName()
getConnectionDriverName
in interface javax.jdo.PersistenceManagerFactory
public String getConnectionFactoryName()
getConnectionFactoryName
in interface javax.jdo.PersistenceManagerFactory
public String getConnectionFactory2Name()
getConnectionFactory2Name
in interface javax.jdo.PersistenceManagerFactory
public Object getConnectionFactory()
getConnectionFactory
in interface javax.jdo.PersistenceManagerFactory
public Object getConnectionFactory2()
getConnectionFactory2
in interface javax.jdo.PersistenceManagerFactory
public boolean getMultithreaded()
getMultithreaded
in interface javax.jdo.PersistenceManagerFactory
public boolean getOptimistic()
getOptimistic
in interface javax.jdo.PersistenceManagerFactory
public boolean getRetainValues()
getRetainValues
in interface javax.jdo.PersistenceManagerFactory
public boolean getRestoreValues()
getRestoreValues
in interface javax.jdo.PersistenceManagerFactory
public boolean getNontransactionalRead()
getNontransactionalRead
in interface javax.jdo.PersistenceManagerFactory
public boolean getNontransactionalWrite()
getNontransactionalWrite
in interface javax.jdo.PersistenceManagerFactory
public boolean getNontransactionalWriteAutoCommit()
public boolean getIgnoreCache()
getIgnoreCache
in interface javax.jdo.PersistenceManagerFactory
public boolean getDetachAllOnCommit()
getDetachAllOnCommit
in interface javax.jdo.PersistenceManagerFactory
public boolean getCopyOnAttach()
getCopyOnAttach
in interface javax.jdo.PersistenceManagerFactory
public String getMapping()
getMapping
in interface javax.jdo.PersistenceManagerFactory
public String getCatalog()
public String getSchema()
public String getName()
getName
in interface javax.jdo.PersistenceManagerFactory
public String getPersistenceUnitName()
getPersistenceUnitName
in interface javax.jdo.PersistenceManagerFactory
public String getPersistenceXmlFilename()
public Integer getDatastoreReadTimeoutMillis()
getDatastoreReadTimeoutMillis
in interface javax.jdo.PersistenceManagerFactory
public Integer getDatastoreWriteTimeoutMillis()
getDatastoreWriteTimeoutMillis
in interface javax.jdo.PersistenceManagerFactory
public String getServerTimeZoneID()
getServerTimeZoneID
in interface javax.jdo.PersistenceManagerFactory
public boolean getReadOnly()
getReadOnly
in interface javax.jdo.PersistenceManagerFactory
public String getTransactionType()
getTransactionType
in interface javax.jdo.PersistenceManagerFactory
public String getTransactionIsolationLevel()
getTransactionIsolationLevel
in interface javax.jdo.PersistenceManagerFactory
public void setPrimaryClassLoader(ClassLoader loader)
loader
- Loaderpublic ClassLoader getPrimaryClassLoader()
public void setPersistenceProperties(Map<String,Object> props)
props
- The persistence propertiespublic Map<String,Object> getPersistenceProperties()
protected void assertConfigurable()
javax.jdo.JDOUserException
- if not configurableprotected boolean isConfigurable()
protected void setIsNotConfigurable()
@Deprecated public List<LifecycleListenerForClass> getLifecycleListenerSpecifications()
public void addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener, Class[] classes)
addInstanceLifecycleListener
in interface javax.jdo.PersistenceManagerFactory
listener
- The listenerclasses
- The classes that the listener relates topublic void removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener)
removeInstanceLifecycleListener
in interface javax.jdo.PersistenceManagerFactory
listener
- The Listenerpublic void addSequenceForFactoryClass(String factoryClassName, javax.jdo.datastore.Sequence sequence)
factoryClassName
- Name of the factory classsequence
- The sequencepublic javax.jdo.datastore.Sequence getSequenceForFactoryClass(String factoryClassName)
factoryClassName
- The name of the factory classpublic Set<javax.jdo.FetchGroup> getFetchGroups()
getFetchGroups
in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.FetchGroup getFetchGroup(Class cls, String name)
getFetchGroup
in interface javax.jdo.PersistenceManagerFactory
public void addFetchGroups(javax.jdo.FetchGroup... groups)
addFetchGroups
in interface javax.jdo.PersistenceManagerFactory
public void removeFetchGroups(javax.jdo.FetchGroup... groups)
removeFetchGroups
in interface javax.jdo.PersistenceManagerFactory
public void removeAllFetchGroups()
removeAllFetchGroups
in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.metadata.JDOMetadata newMetadata()
registerMetadata(javax.jdo.metadata.JDOMetadata)
.newMetadata
in interface javax.jdo.PersistenceManagerFactory
public void registerMetadata(javax.jdo.metadata.JDOMetadata metadata)
PersistenceManagerFactory
.
Metadata can be created using the method newMetadata()
.registerMetadata
in interface javax.jdo.PersistenceManagerFactory
metadata
- The Metadata to register.public javax.jdo.metadata.TypeMetadata getMetadata(String className)
getMetadata
in interface javax.jdo.PersistenceManagerFactory
className
- Name of the class that we want metadata forpublic Collection<Class> getManagedClasses()
getManagedClasses
in interface javax.jdo.PersistenceManagerFactory
public void unmanageClass(String className)
className
- Name of the classpublic static void checkJDOPermission(javax.jdo.spi.JDOPermission jdoPermission)
Copyright © 2020. All rights reserved.