|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.conf.ConfigurationImpl org.apache.openjpa.conf.OpenJPAConfigurationImpl org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl kodo.jdbc.conf.JDBCConsolidatedConfiguration kodo.jdo.jdbc.JDOConnectionFactory
public class JDOConnectionFactory
JCA ConnectionFactory for obtaining JDO PersistenceManagers.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl |
---|
connectionDecoratorPlugins, dbdictionaryPlugin, driverDataSourcePlugin, eagerFetchMode, fetchDirection, jdbcListenerPlugins, lrsSize, mappingDefaultsPlugin, mappingFactoryPlugin, resultSetType, schema, schemaFactoryPlugin, schemas, sqlFactoryPlugin, subclassFetchMode, synchronizeMappings, transactionIsolation, updateManagerPlugin |
Fields inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl |
---|
id, logFactoryPlugin |
Fields inherited from interface org.apache.openjpa.kernel.ConnectionRetainModes |
---|
CONN_RETAIN_ALWAYS, CONN_RETAIN_DEMAND, CONN_RETAIN_TRANS |
Fields inherited from interface org.apache.openjpa.lib.conf.Configuration |
---|
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_CATEGORY, ATTRIBUTE_INTERFACE, ATTRIBUTE_ORDER, ATTRIBUTE_TYPE, ATTRIBUTE_XML, INIT_STATE_FREEZING, INIT_STATE_FROZEN, INIT_STATE_LIQUID |
Fields inherited from interface java.beans.BeanInfo |
---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Fields inherited from interface org.apache.openjpa.jdbc.conf.JDBCConfiguration |
---|
LOG_JDBC, LOG_SCHEMA, LOG_SQL |
Constructor Summary | |
---|---|
JDOConnectionFactory()
|
|
JDOConnectionFactory(boolean defaults)
|
|
JDOConnectionFactory(ManagedConnectionFactory mcf,
ConnectionManager cm)
|
|
JDOConnectionFactory(Properties props)
|
Method Summary | |
---|---|
void |
addInstanceLifecycleListener(InstanceLifecycleListener listener,
Class[] classes)
|
void |
addTransferListener(RemoteTransferListener listener)
This method only available on client factories. |
OpenJPAConfiguration |
getConfiguration()
Return the configuration for this factory. |
Connection |
getConnection()
|
Connection |
getConnection(ConnectionSpec spec)
|
DataStoreCache |
getDataStoreCache()
|
KodoDataStoreCache |
getDataStoreCache(String cacheName)
Return a JDO facade to the given named Kodo cache. |
boolean |
getDetachAllOnCommit()
|
boolean |
getIgnoreCache()
|
ResourceAdapterMetaData |
getMetaData()
|
PersistenceManager |
getPersistenceManager()
|
KodoPersistenceManager |
getPersistenceManager(boolean managed,
int connRetainMode)
Return a persistence manager in the given transaction and connection retain mode. |
PersistenceManager |
getPersistenceManager(String user,
String pass)
|
KodoPersistenceManager |
getPersistenceManager(String user,
String pass,
boolean managed,
int connRetainMode)
Return a persistence manager in the given transaction and connection retain mode. |
static PersistenceManagerFactory |
getPersistenceManagerFactory(Map map)
|
static PersistenceManagerFactory |
getPersistenceManagerFactory(Properties props)
Allows the JDOHelper.getPersistenceManagerFactory(java.util.Map) method to
instantiate an instance of this class as a factory. |
Properties |
getProperties()
|
QueryResultCache |
getQueryResultCache()
Return a view of the query result cache. |
RecordFactory |
getRecordFactory()
|
Reference |
getReference()
|
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
|
Object |
getUserObject(Object key)
User object association. |
boolean |
isClosed()
|
boolean |
isPersistenceServerRunning()
Return true if a persistence server is running. |
boolean |
joinPersistenceServer()
Join the thread running the persistence server for this factory. |
protected void |
preClose()
|
Object |
putUserObject(Object key,
Object val)
User object association. |
void |
removeInstanceLifecycleListener(InstanceLifecycleListener listener)
|
void |
removeTransferListener(RemoteTransferListener listener)
This method only available on client factories. |
void |
setDetachAllOnCommit(boolean detach)
|
void |
setIgnoreCache(boolean val)
|
void |
setReference(Reference ref)
|
void |
setRestoreValues(boolean val)
|
void |
setRetainValues(boolean val)
|
boolean |
startPersistenceServer()
Start the persistence server. |
boolean |
stopPersistenceServer()
Stop the persistence server. |
Methods inherited from class kodo.jdbc.conf.JDBCConsolidatedConfiguration |
---|
getExecutionContextNameProvider, getJMX, getLicenseKey, getPersistenceServer, getProfiling, setExecutionContextNameProvider, setJMX, setLicenseKey, setPersistenceServer, setProfiling |
Methods inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl |
---|
addBoolean, addDouble, addFile, addInt, addObject, addPlugin, addPluginList, addPropertyChangeListener, addString, addStringList, addValue, clone, close, equals, fromProperties, getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getId, getLog, getLog, getLogFactory, getMethodDescriptors, getProductName, getPropertiesResource, getPropertyDescriptors, getValue, getValues, hashCode, isReadOnly, loadGlobals, readExternal, removePropertyChangeListener, removeValue, setId, setLog, setLogFactory, setProductName, setProperties, setPropertiesFile, setReadOnly, toProperties, toXMLName, valueChanged, writeExternal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface kodo.jdo.KodoPersistenceManagerFactory |
---|
getConnectionPassword |
Methods inherited from interface org.apache.openjpa.lib.conf.Configuration |
---|
addPropertyChangeListener, addValue, clone, fromProperties, getConfigurationLog, getId, getLog, getLog, getLogFactory, getProductName, getValue, getValues, instantiateAll, isReadOnly, removePropertyChangeListener, removeValue, setId, setLog, setLogFactory, setProductName, setReadOnly, toProperties |
Methods inherited from interface java.beans.BeanInfo |
---|
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors |
Constructor Detail |
---|
public JDOConnectionFactory()
public JDOConnectionFactory(boolean defaults)
public JDOConnectionFactory(Properties props)
public JDOConnectionFactory(ManagedConnectionFactory mcf, ConnectionManager cm)
Method Detail |
---|
public static PersistenceManagerFactory getPersistenceManagerFactory(Properties props)
JDOHelper.getPersistenceManagerFactory(java.util.Map)
method to
instantiate an instance of this class as a factory.
public static PersistenceManagerFactory getPersistenceManagerFactory(Map map)
public RecordFactory getRecordFactory() throws NotSupportedException
getRecordFactory
in interface ConnectionFactory
NotSupportedException
public ResourceAdapterMetaData getMetaData()
getMetaData
in interface ConnectionFactory
public Connection getConnection() throws ResourceException
getConnection
in interface ConnectionFactory
ResourceException
public Connection getConnection(ConnectionSpec spec) throws ResourceException
getConnection
in interface ConnectionFactory
ResourceException
public void setReference(Reference ref)
public Reference getReference()
getReference
in interface Referenceable
public OpenJPAConfiguration getConfiguration()
KodoPersistenceManagerFactory
getConfiguration
in interface KodoPersistenceManagerFactory
public Properties getProperties()
getProperties
in interface PersistenceManagerFactory
public Object getUserObject(Object key)
KodoPersistenceManagerFactory
getUserObject
in interface KodoPersistenceManagerFactory
public Object putUserObject(Object key, Object val)
KodoPersistenceManagerFactory
putUserObject
in interface KodoPersistenceManagerFactory
public DataStoreCache getDataStoreCache()
getDataStoreCache
in interface PersistenceManagerFactory
public KodoDataStoreCache getDataStoreCache(String cacheName)
KodoPersistenceManagerFactory
getDataStoreCache
in interface KodoPersistenceManagerFactory
public QueryResultCache getQueryResultCache()
KodoPersistenceManagerFactory
getQueryResultCache
in interface KodoPersistenceManagerFactory
public PersistenceManager getPersistenceManager()
getPersistenceManager
in interface PersistenceManagerFactory
public PersistenceManager getPersistenceManager(String user, String pass)
getPersistenceManager
in interface PersistenceManagerFactory
public KodoPersistenceManager getPersistenceManager(boolean managed, int connRetainMode)
KodoPersistenceManagerFactory
getPersistenceManager
in interface KodoPersistenceManagerFactory
ConnectionRetainModes
public KodoPersistenceManager getPersistenceManager(String user, String pass, boolean managed, int connRetainMode)
KodoPersistenceManagerFactory
getPersistenceManager
in interface KodoPersistenceManagerFactory
ConnectionRetainModes
public boolean startPersistenceServer()
KodoPersistenceManagerFactory
startPersistenceServer
in interface KodoPersistenceManagerFactory
public boolean joinPersistenceServer()
KodoPersistenceManagerFactory
joinPersistenceServer
in interface KodoPersistenceManagerFactory
public boolean stopPersistenceServer()
KodoPersistenceManagerFactory
stopPersistenceServer
in interface KodoPersistenceManagerFactory
public boolean isPersistenceServerRunning()
KodoPersistenceManagerFactory
isPersistenceServerRunning
in interface KodoPersistenceManagerFactory
public void addInstanceLifecycleListener(InstanceLifecycleListener listener, Class[] classes)
addInstanceLifecycleListener
in interface PersistenceManagerFactory
public void removeInstanceLifecycleListener(InstanceLifecycleListener listener)
removeInstanceLifecycleListener
in interface PersistenceManagerFactory
public void addTransferListener(RemoteTransferListener listener)
KodoPersistenceManagerFactory
addTransferListener
in interface KodoPersistenceManagerFactory
public void removeTransferListener(RemoteTransferListener listener)
KodoPersistenceManagerFactory
removeTransferListener
in interface KodoPersistenceManagerFactory
protected void preClose()
preClose
in class JDBCConfigurationImpl
public boolean isClosed()
isClosed
in interface PersistenceManagerFactory
public boolean getRetainValues()
getRetainValues
in interface PersistenceManagerFactory
public void setRetainValues(boolean val)
setRetainValues
in interface PersistenceManagerFactory
public boolean getRestoreValues()
getRestoreValues
in interface PersistenceManagerFactory
public void setRestoreValues(boolean val)
setRestoreValues
in interface PersistenceManagerFactory
public boolean getIgnoreCache()
getIgnoreCache
in interface PersistenceManagerFactory
public void setIgnoreCache(boolean val)
setIgnoreCache
in interface PersistenceManagerFactory
public boolean getDetachAllOnCommit()
getDetachAllOnCommit
in interface PersistenceManagerFactory
public void setDetachAllOnCommit(boolean detach)
setDetachAllOnCommit
in interface PersistenceManagerFactory
|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |