ObjectDB Database Search

1-50 of 130 results

[ODB1] Chapter 5 - JDO Connections

;The PersistenceManagerFactory interface represents a factory of database connections. Its main role is to provide ... .jdo. PersistenceManagerFactory Most applications require multiple database connections ... consumes. Database connections are managed in JDO by the javax.jdo. PersistenceManagerFactory interface

javax.jdo.PersistenceManagerFactory

JDO Interface PersistenceManagerFactory Super Interfaces: Serializable The PersistenceManagerFactory is the interface to use to obtain PersistenceManager instances. All PersistenceManager instances obtained from the same PersistenceManagerFactory will have the same default properties

[ODB1] Chapter 8 - ObjectDB Server

. If the PersistenceManagerFactory is initialized using a property file, two lines should be added ... , the PersistenceManagerFactory 's properties can be set at runtime: Properties properties = new Properties(); : : properties ... ( "com.objectdb.ssl.truststore.password", "ts-pwd"); PersistenceManagerFactory pmf = JDOHelper

PersistenceManagerFactory.close() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void close () Close this PersistenceManagerFactory . Check for JDOPermission("closePersistenceManagerFactory") and if not authorized, throw ... obtained from this PersistenceManagerFactory have no active transactions. If any PersistenceManager

PersistenceManagerFactory.getPersistenceManagerProxy() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory PersistenceManager getPersistenceManagerProxy ... of PersistenceManager . When used with a PersistenceManagerFactory that uses TransactionType JTA ... is automatically closed when the transaction completes. When used with a PersistenceManagerFactory

PersistenceManagerFactory.isClosed() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory boolean isClosed () A PersistenceManagerFactory instance can be used until it is closed. Return: true if this PersistenceManagerFactory has been closed. See Also: close () Since: JDO 2.0

PersistenceManagerFactory.getProperties() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory Properties getProperties () Return non-configurable properties of this PersistenceManagerFactory . Properties with keys VendorName and VersionNumber are required. Other keys are optional. Return: the non-configurable properties of this PersistenceManagerFactory . Since: JDO 1.0

PersistenceManagerFactory.addInstanceLifecycleListener(listener,classes) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void addInstanceLifecycleListener (    ... PersistenceManager created by this PersistenceManagerFactory . The addInstanceLifecycleListener ... and can only be called when the PersistenceManagerFactory is configurable (before the first time getPersistenceManager

PersistenceManagerFactory.removeInstanceLifecycleListener(listener) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void removeInstanceLifecycleListener (   ... created by this PersistenceManagerFactory . The addInstanceLifecycleListener ... when the PersistenceManagerFactory is configurable (before the first time getPersistenceManager is called). Parameters

PersistenceManagerFactory.setName(name) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setName (   String name ) Sets the name of this PersistenceManagerFactory . Parameters: name - the name of this PMF Since: JDO 2.1

PersistenceManagerFactory.getName() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getName () Gets the name of this PersistenceManagerFactory . Return: the name of this PMF Since: JDO 2.1

PersistenceManagerFactory.setPersistenceUnitName(name) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setPersistenceUnitName (   String name ) Sets the PersistenceUnitName for this PersistenceManagerFactory . This has the same semantics as the same-named property in JSR-220 PersistenceUnitInfo. Parameters: name

PersistenceManagerFactory.getPersistenceUnitName() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getPersistenceUnitName () Gets the PersistenceUnitName for this PersistenceManagerFactory . Return: the PersistenceUnitName See Also: setPersistenceUnitName Since: JDO 2.1

PersistenceManagerFactory.setServerTimeZoneID(timezoneid) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setServerTimeZoneID (   String timezoneid ) Sets the TimeZone ID of the server associated with this PersistenceManagerFactory . The parameter is a String suitable for use with TimeZone.getTimeZone(). The String must match an ID

PersistenceManagerFactory.getServerTimeZoneID() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getServerTimeZoneID () Gets the TimeZone ID of the server associated with this PersistenceManagerFactory . If not set, assume that the server has the same TimeZone ID as the client. Return: the TimeZone of the server See Also: setServerTimeZoneID Since: JDO 2.1

PersistenceManagerFactory.setTransactionType(name) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setTransactionType (   String name ) Sets the TransactionType for this PersistenceManagerFactory . Permitted values are "JTA" and "RESOURCE_LOCAL". This has the same semantics as the same-named property in JSR-220

PersistenceManagerFactory.getTransactionType() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getTransactionType () Gets the TransactionType for this PersistenceManagerFactory . Return: the TransactionType See Also: setTransactionType Since: JDO 2.1

PersistenceManagerFactory.getFetchGroup(cls,name) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory FetchGroup getFetchGroup (   Class cls,    String name ) Create an unscoped, modifiable FetchGroup for the Class and name. If a corresponding FetchGroup already exists in PersistenceManagerFactory scope, copy

PersistenceManagerFactory.getPersistenceManager() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory PersistenceManager getPersistenceManager () Get an instance of PersistenceManager from this factory. The instance has default values for options. After the first use of getPersistenceManager , no "set" methods will succeed. Return: a PersistenceManager instance with default options. Since: JDO 1.0

PersistenceManagerFactory.getPersistenceManager(userid,password) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory PersistenceManager getPersistenceManager (   String userid,    String password ) Get an instance of PersistenceManager from this factory. The instance has default values for options. The parameters userid

PersistenceManagerFactory.setConnectionUserName(userName) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setConnectionUserName (   String userName ) Set the user name for the data store connection. Parameters: userName - the user name for the data store connection. Since: JDO 1.0

PersistenceManagerFactory.getConnectionUserName() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getConnectionUserName () Get the user name for the data store connection. Return: the user name for the data store connection. Since: JDO 1.0

PersistenceManagerFactory.setConnectionPassword(password) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setConnectionPassword (   String password ) Set the password for the data store connection. Parameters: password - the password for the data store connection. Since: JDO 1.0

PersistenceManagerFactory.setConnectionURL(url) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setConnectionURL (   String url ) Set the URL for the data store connection. Parameters: url - the URL for the data store connection. Since: JDO 1.0

PersistenceManagerFactory.getConnectionURL() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getConnectionURL () Get the URL for the data store connection. Return: the URL for the data store connection. Since: JDO 1.0

PersistenceManagerFactory.setConnectionDriverName(driverName) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setConnectionDriverName (   String driverName ) Set the driver name for the data store connection. Parameters: driverName - the driver name for the data store connection. Since: JDO 1.0

PersistenceManagerFactory.getConnectionDriverName() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getConnectionDriverName () Get the driver name for the data store connection. Return: the driver name for the data store connection. Since: JDO 1.0

PersistenceManagerFactory.setConnectionFactoryName(connectionFactoryName) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setConnectionFactoryName (   String connectionFactoryName ) Set the name for the data store connection factory. Parameters: connectionFactoryName - the name of the data store connection factory. Since: JDO 1.0

PersistenceManagerFactory.getConnectionFactoryName() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getConnectionFactoryName () Get the name for the data store connection factory. Return: the name of the data store connection factory. Since: JDO 1.0

PersistenceManagerFactory.setConnectionFactory(connectionFactory) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setConnectionFactory (   Object connectionFactory ) Set the data store connection factory. JDO implementations will support specific connection factories. The connection factory interfaces are not part of the JDO specification

PersistenceManagerFactory.getConnectionFactory() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory Object getConnectionFactory () Get the data store connection factory. Return: the data store connection factory. Since: JDO 1.0

PersistenceManagerFactory.setConnectionFactory2Name(connectionFactoryName) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setConnectionFactory2Name (   String connectionFactoryName ) Set the name for the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions

PersistenceManagerFactory.getConnectionFactory2Name() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getConnectionFactory2Name () Get the name for the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Return: the name of the data store connection factory. Since: JDO 1.0

PersistenceManagerFactory.setConnectionFactory2(connectionFactory) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setConnectionFactory2 (   Object connectionFactory ) Set the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. JDO implementations

PersistenceManagerFactory.getConnectionFactory2() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory Object getConnectionFactory2 () Get the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Return: the data store connection factory. Since: JDO 1.0

PersistenceManagerFactory.setMultithreaded(flag) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setMultithreaded (   boolean flag ) Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory. Parameters: flag - the default Multithreaded setting. Since: JDO 1.0

PersistenceManagerFactory.getMultithreaded() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory boolean getMultithreaded () Get the default Multithreaded setting for all PersistenceManager instances obtained from this factory. Return: the default Multithreaded setting. Since: JDO 1.0

PersistenceManagerFactory.setMapping(mapping) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setMapping (   String mapping ) Set the Mapping setting for this factory. This is used to find the object-datastore mapping file(s). Parameters: mapping - the Mapping setting. Since: JDO 1.0

PersistenceManagerFactory.getMapping() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory String getMapping () Get the Mapping setting for this factory. This is used to find the object-datastore mapping file(s). Return: the Mapping setting. Since: JDO 1.0

PersistenceManagerFactory.setOptimistic(flag) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setOptimistic (   boolean flag ) Set the default Optimistic setting for all PersistenceManager instances obtained from this factory. Parameters: flag - the default Optimistic setting. Since: JDO 1.0

PersistenceManagerFactory.getOptimistic() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory boolean getOptimistic () Get the default Optimistic setting for all PersistenceManager instances obtained from this factory. Return: the default Optimistic setting. Since: JDO 1.0

PersistenceManagerFactory.setRetainValues(flag) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setRetainValues (   boolean flag ) Set the default RetainValues setting for all PersistenceManager instances obtained from this factory. Parameters: flag - the default RetainValues setting. Since: JDO 1.0

PersistenceManagerFactory.getRetainValues() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory boolean getRetainValues () Get the default RetainValues setting for all PersistenceManager instances obtained from this factory. Return: the default RetainValues setting. Since: JDO 1.0

PersistenceManagerFactory.setRestoreValues(restoreValues) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setRestoreValues (   boolean restoreValues ) Set the default value for the RestoreValues property. If true , at rollback, fields of newly persistent instances are restored to their values as of the beginning of the transaction

PersistenceManagerFactory.getRestoreValues() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory boolean getRestoreValues () Get the default value for the RestoreValues property. Return: the value of the restoreValues property Since: JDO 1.0

PersistenceManagerFactory.setNontransactionalRead(flag) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setNontransactionalRead (   boolean flag ) Set the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. Parameters: flag - the default NontransactionalRead setting. Since: JDO 1.0

PersistenceManagerFactory.getNontransactionalRead() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory boolean getNontransactionalRead () Get the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. Return: the default NontransactionalRead setting. Since: JDO 1.0

PersistenceManagerFactory.setNontransactionalWrite(flag) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setNontransactionalWrite (   boolean flag ) Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. Parameters: flag - the default NontransactionalWrite setting. Since: JDO 1.0

PersistenceManagerFactory.getNontransactionalWrite() - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory boolean getNontransactionalWrite () Get the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. Return: the default NontransactionalWrite setting. Since: JDO 1.0

PersistenceManagerFactory.setIgnoreCache(flag) - JDO Method

JDO Method in javax.jdo. PersistenceManagerFactory void setIgnoreCache (   boolean flag ) Set the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. Parameters: flag - the default IgnoreCache setting. Since: JDO 1.0