Internal Website Search

101-150 of 200 results

ClassCastException on closing PersistenceManager

the PersistenceManager after reading the DB: java.lang.ClassCastException: com.objectdb.o.ENT ... ; the method on the bottom of the stack trace looks like this: private PersistenceManager persistenceManager ; public void close() {   if( ! this. persistenceManager .isClosed()) {   

How Should I Configure objectdb.conf to Obtain 256KB Disk IO Requests and Maximize Shared PersistenceManager Entity Cache?

.conf to give 256KB disk accesses and use PersistenceManager L1 ref=soft caching and datastore pagefile caching 1 MB (4 256KB sized pages).  The goal is to have frequent PersistenceManager L1

Lock prevents PersistenceManager.close when retainValues = false

I have code in which a PersistenceManager is obtained, used in several transactions, and then closed.  If those transactions involves writes, then the code jams (use of VisualVM shows ... on a list of managed objects that have to be prepared for detachment during a PersistenceManager

PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException

PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException

JDO PersistenceManager.getSequence() returns null sometimes

to reproduce: import javax.jdo. PersistenceManager ; import javax.jdo.PersistenceManagerFactory; import ... .setConnectionURL("build/testcase.odb"); PersistenceManager pm = factory.getPersistenceManager(); Sequence seq1

JDO Predefined ID Classes

PersistenceManager methods ( getObjectId , getObjectById , getObjectByIds , etc.) to represent objects

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level.

[ODB1] Chapter 3 - Persistent Classes

jdoPreStore() { } public void jdoPreDelete() { PersistenceManager pm = JDOHelper

[ODB1] Chapter 4 - JDO Metadata

above) is a PersistenceManager instance that represents the database whose index or indexes should be rebuilt. The Thread

javax.jdo.PersistenceManagerFactory

The PersistenceManagerFactory is the interface to use to obtain PersistenceManager instances. All PersistenceManager instances ... PersistenceManager is obtained from the PersistenceManagerFactory , the factory can no longer ... is set (non- null ) then ConnectionFactory2Name is ignored. Operational state ( PersistenceManager

javax.jdo.spi.PersistenceCapable

, transactional, dirty, new, deleted, or detached; and to get its associated PersistenceManager ... the PersistenceManager . This method returns a copy of the ObjectId that represents the JDO identity. Transient instances return null. The ObjectId may be serialized and later restored, and used with a PersistenceManager

javax.jdo.JDOHelper

; and to get its associated PersistenceManager if it has one. Since: JDO 1.0 Public Constructors JDOHelper () Some ... of PersistenceCapable classes have a JDO identity managed by the PersistenceManager . This method returns ... restored, and used with a PersistenceManager from the same JDO implementation to locate a persistent

javax.jdo.spi.StateInterrogation

. Persistent instances of PersistenceCapable classes have a JDO identity managed by the PersistenceManager ... with a PersistenceManager from the same JDO implementation to locate a persistent instance with the same ... with a PersistenceManager from any JDO implementation that supports the PersistenceCapable class

javax.jdo.Query

to obtain persistent instances, values, and aggregate data from the data store. The PersistenceManager ... with a PersistenceManager . Multiple queries might be executed simultaneously by different threads, but the implementation ... specification, and grouping specification. The association with a PersistenceManager , the candidate

PersistenceManagerFactory.getPersistenceManagerProxy() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory PersistenceManager getPersistenceManagerProxy ... of PersistenceManager . When used with a PersistenceManagerFactory that uses TransactionType JTA ... with the thread's current transaction. In this case, the close method is ignored, as the PersistenceManager

javax.jdo.spi.StateManager

PersistenceManager getPersistenceManager (PersistenceCapable pc) Return the PersistenceManager that owns this instance. Parameters: pc - the calling PersistenceCapable instance Return: the PersistenceManager ... : true if this instance was deleted in the current transaction. See Also: PersistenceManager

javax.jdo.FetchPlan

of this interface can be obtained from PersistenceManager .getFetchPlan , Extent.getFetchPlan , and Query. When a Query or Extent is retrieved from a PersistenceManager , its FetchPlan is initialized to the same settings as that of the PersistenceManager . Subsequent modifications of the Query or

JDOHelper.getObjectId(pc) - JDO Static Method

of PersistenceCapable classes have a JDO identity managed by the PersistenceManager . This method returns a copy ... , and used with a PersistenceManager from the same JDO implementation to locate a persistent ... , then the ObjectId may be used with a PersistenceManager from any JDO implementation that supports

javax.jdo.Extent

: the fetch plan Since: JDO 2.0 PersistenceManager getPersistenceManager () An Extent is managed by a PersistenceManager ; this method gives access to the owning PersistenceManager . Return: the owning PersistenceManager Since: JDO 1.0 boolean hasSubclasses () Returns whether this Extent was defined

javax.jdo.FetchGroup

this interface can be obtained from PersistenceManager .getFetchGroup or PersistenceManagerFactory.getFetchGroup . A FetchGroup can be unscoped or can be in one of two scopes (the PersistenceManager or ... in PersistenceManager scope hides the corresponding FetchGroup in the PersistenceManagerFactory scope

StateInterrogation.getObjectId(pc) - JDO Method

of PersistenceCapable classes have a JDO identity managed by the PersistenceManager . This method returns ... return null . The ObjectId may be serialized and later restored, and used with a PersistenceManager ... with a PersistenceManager from any JDO implementation that supports the PersistenceCapable class. If the JDO identity

PersistenceCapable.jdoGetObjectId() - JDO Method

identity managed by the PersistenceManager . This method returns a copy of the ObjectId ... restored, and used with a PersistenceManager from the same JDO implementation to locate a persistent ... , then the ObjectId may be used with a PersistenceManager from any JDO implementation that supports

PersistenceCapable.jdoGetPersistenceManager() - JDO Method

JDO Method in javax.jdo.spi.PersistenceCapable PersistenceManager jdoGetPersistenceManager () Return the associated PersistenceManager if there is one. Transactional and persistent instances return the associated PersistenceManager . Transient non-transactional instances return null. This method

PersistenceManagerFactory.close() - JDO Method

SecurityException. If the authorization check succeeds, check to see that all PersistenceManager instances obtained from this PersistenceManagerFactory have no active transactions. If any PersistenceManager ... for each PersistenceManager with an active Transaction. If there are no active transactions, then close

JDOHelper.getPersistenceManager(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManager getPersistenceManager (   Object pc ) Return the associated PersistenceManager if there is one. Transactional and persistent instances return the associated PersistenceManager . Transient non-transactional instances

Query.getPersistenceManager() - JDO Method

JDO Method in javax.jdo.Query PersistenceManager getPersistenceManager () Get the PersistenceManager associated with this Query . If this Query was restored from a serialized form, it has no PersistenceManager , and this method returns null . Return: the PersistenceManager associated with this Query . Since: JDO 1.0

javax.jdo.Transaction

of transactions under user control. It is a sub-interface of the PersistenceManager that deals ... PersistenceManager getPersistenceManager () The Transaction instance is always associated with exactly one PersistenceManager . Return: the PersistenceManager for this Transaction instance Since: JDO 1.0

Extent.getPersistenceManager() - JDO Method

JDO Method in javax.jdo.Extent PersistenceManager getPersistenceManager () An Extent is managed by a PersistenceManager ; this method gives access to the owning PersistenceManager . Return: the owning PersistenceManager Since: JDO 1.0

StateInterrogation.getPersistenceManager(pc) - JDO Method

JDO Method in javax.jdo.spi.StateInterrogation PersistenceManager getPersistenceManager (   Object pc ) Return the associated PersistenceManager if there is one. Transactional and persistent instances return the associated PersistenceManager . Transient non-transactional instances

PersistenceManagerFactory.getPersistenceManager(userid,password) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory PersistenceManager getPersistenceManager (   ... of PersistenceManager from this factory. The instance has default values for options. The parameters userid ... for the connection password - the password for the connection Return: a PersistenceManager instance with default options. Since: JDO 1.0

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

StateManager.getPersistenceManager(pc) - JDO Method

JDO Method in javax.jdo.spi.StateManager PersistenceManager getPersistenceManager (   PersistenceCapable pc ) Return the PersistenceManager that owns this instance. Parameters: pc - the calling PersistenceCapable instance Return: the PersistenceManager that owns this instance Since: JDO 1.0

Transaction.getPersistenceManager() - JDO Method

JDO Method in javax.jdo.Transaction PersistenceManager getPersistenceManager () The Transaction instance is always associated with exactly one PersistenceManager . Return: the PersistenceManager for this Transaction instance Since: JDO 1.0

javax.jdo.listener.AttachCallback

during the execution of javax.jdo. PersistenceManager .makePersistent on the persistent instance after the copy ... the call to {@link javax.jdo. PersistenceManager #makePersistent} . Since: JDO 2.0 void jdoPreAttach () This method is called during the execution of javax.jdo. PersistenceManager .makePersistent on the detached instance before the copy is made. Since: JDO 2.0

javax.jdo.datastore.JDOConnection

JDO Interface JDOConnection The underlying connection that is being used by a javax.jdo. PersistenceManager . Since: JDO 2.0 Public Methods void close () Returns this connection to the JDO ... to it, so it is quite possible to put the PersistenceManager 's connection into an invalid state. Return: the native connection Since: JDO 2.0

javax.jdo.listener.StoreLifecycleListener

, for example during javax.jdo. PersistenceManager .flush or javax.jdo.Transaction.commit . It is called ... during javax.jdo. PersistenceManager .flush or javax.jdo.Transaction.commit . It is called before

javax.jdo.listener.DeleteLifecycleListener

, for example during javax.jdo. PersistenceManager .deletePersistent . This method is called ... whenever a persistent instance is deleted, for example during javax.jdo. PersistenceManager .deletePersistent

javax.jdo.listener.DetachCallback

during the execution of javax.jdo. PersistenceManager .detachCopy on the detached instance after the copy ... jdoPreDetach () This method is called during the execution of javax.jdo. PersistenceManager .detachCopy

javax.jdo.listener.AttachLifecycleListener

is attached, via the javax.jdo. PersistenceManager .makePersistent method. The source instance ... ) This method is called before a detached instance is attached, via the javax.jdo. PersistenceManager

javax.jdo.listener.DetachLifecycleListener

. PersistenceManager .detachCopy after the detached copy is made. It is called after the method ... during the execution of javax.jdo. PersistenceManager .detachCopy before the detached copy is made. It is called

AttachCallback.jdoPostAttach(attached) - JDO Method

JDO Method in javax.jdo.listener.AttachCallback void jdoPostAttach (   Object attached ) This method is called during the execution of javax.jdo. PersistenceManager .makePersistent ... -attached) instance that was attached in the call to {@link javax.jdo. PersistenceManager #makePersistent} . Since: JDO 2.0

PersistenceCapable.jdoGetTransactionalObjectId() - JDO Method

. See Also: jdoGetObjectId () PersistenceManager .getObjectId (Object pc) PersistenceManager .getObjectById (Object oid,boolean validate) Since: JDO 1.0

PersistenceManagerFactory.setServerTimeZoneID(timezoneid) - JDO Method

of PersistenceManager .getServerDate() might be incorrect. Parameters: timezoneid - the TimeZone ID ... .getAvailableIDs() See Also: getServerTimeZoneID () java.util.TimeZone java.util.TimeZone () PersistenceManager .getServerDate () Since: JDO 2.1

PersistenceManagerFactory.setCopyOnAttach(flag) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void setCopyOnAttach (   boolean flag ) Sets the default copyOnAttach setting for all PersistenceManager instances obtained from this factory. CopyOnAttach set to true specifies that during makePersistent, copies are made of detached

PersistenceManagerFactory.getCopyOnAttach() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory boolean getCopyOnAttach () Gets the default copyOnAttach setting for all PersistenceManager instances obtained from this factory. Return: the copyOnAttach setting. See Also: setCopyOnAttach Since: JDO 2.1

PersistenceManagerFactory.getIgnoreCache() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory boolean getIgnoreCache () Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. Return: the default IngoreCache 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

PersistenceManagerFactory.setDetachAllOnCommit(flag) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void setDetachAllOnCommit (   boolean flag ) Sets the default detachAllOnCommit setting for all PersistenceManager instances obtained from this factory. Parameters: flag - the default DetachAllOnCommit setting See Also: getDetachAllOnCommit () Since: JDO 2.0

PersistenceManagerFactory.removeInstanceLifecycleListener(listener) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void removeInstanceLifecycleListener (    InstanceLifecycleListener  listener ) Remove the parameter listener instance from the list of instance lifecycle event listeners set as the initial listeners for each PersistenceManager

PersistenceManagerFactory.addInstanceLifecycleListener(listener,classes) - JDO Method

PersistenceManager created by this PersistenceManagerFactory. The addInstanceLifecycleListener