Internal Website Search

1-50 of 200 results

[ODB1] Chapter 5 - JDO Connections

role is to provide PersistenceManager instances. The PersistenceManager interface represents a database connection. Every operation on a database requires a PersistenceManager instance. The Transaction ... () method. Each time this method is called, a PersistenceManager instance representing a connection

[ODB1] Chapter 6 - Persistent Objects

a collection or array of objects to makePersistentAll( ... ) , which is another method of PersistenceManager ... (useful when a PersistenceManager is unavailable): Object oid = JDOHelper.getObjectId(obj); JDO ... a persistent object representing that database object. Every PersistenceManager instance manages a cache

[ODB1] Chapter 2 - A Quick Tour

// Create or open a database and begin a transaction: 12 PersistenceManager pm = 13 Utilities ... (line 5). Lines 11-14 A PersistenceManager instance representing a local database file, hello.odb ... without names in JDO. Another extension is used to obtain a PersistenceManager instance (line 13

javax.jdo.PersistenceManager

JDO Interface PersistenceManager PersistenceManager is the primary interface for JDO-aware ... to manage the life cycle of PersistenceCapable instances. A PersistenceManager is obtained from ... checkConsistency () Validates the PersistenceManager cache with the datastore. This method has no effect

PersistenceManager.close() - JDO Method

JDO Method in javax.jdo. PersistenceManager void close () Close this PersistenceManager so that no further requests may be made on it. A PersistenceManager instance can be used only until it is closed. Closing a PersistenceManager might release it to the pool of available PersistenceManager s, or

PersistenceManager.getFetchGroup(cls,name) - JDO Method

JDO Method in javax.jdo. PersistenceManager FetchGroup getFetchGroup (   Class cls ... . If a modifiable FetchGroup already exists in the PersistenceManager scope, return it. If not, create and populate a new FetchGroup from the existing definition in the PersistenceManager or

PersistenceManager.setMultithreaded(flag) - JDO Method

JDO Method in javax.jdo. PersistenceManager void setMultithreaded (   boolean flag ) Set the Multithreaded flag for this PersistenceManager . Applications that use multiple threads to invoke methods or access fields from instances managed by this PersistenceManager must set this flag

PersistenceManager.getUserObject() - JDO Method

JDO Method in javax.jdo. PersistenceManager Object getUserObject () The application can manage the PersistenceManager instances more easily by having an application object associated with each PersistenceManager instance. Return: the user object associated with this PersistenceManager See Also: setUserObject Since: JDO 1.0

PersistenceManager.setUserObject(o) - JDO Method

JDO Method in javax.jdo. PersistenceManager void setUserObject (   Object o ) The application can manage the PersistenceManager instances more easily by having an application object associated with each PersistenceManager instance. Parameters: o - the user instance to be remembered

PersistenceManager.getObjectId(pc) - JDO Method

JDO Method in javax.jdo. PersistenceManager Object getObjectId (   Object pc ... of the JDO PersistenceManager that created the identity, and only for two types of JDO Identity ... only one among all JDO instances associated with the PersistenceManager regardless of the type

PersistenceManager.makePersistent(pc) - JDO Method

JDO Method in javax.jdo. PersistenceManager T makePersistent (   T pc ) Make the parameter instance persistent in this PersistenceManager . This method makes transient instances ... this PersistenceManager . They will throw a JDOUserException if the parameter instance is managed by a different

PersistenceManager.currentTransaction() - JDO Method

JDO Method in javax.jdo. PersistenceManager Transaction currentTransaction () Return the Transaction instance associated with a PersistenceManager . There is one Transaction instance associated with each PersistenceManager instance. The Transaction instance supports options as well as transaction

PersistenceManager.getPersistenceManagerFactory() - JDO Method

JDO Method in javax.jdo. PersistenceManager PersistenceManagerFactory getPersistenceManagerFactory () This method returns the PersistenceManagerFactory used to create this PersistenceManager . Return: the PersistenceManagerFactory that created this PersistenceManager Since: JDO 1.0

PersistenceManager.makeTransientAll(useFetchPlan,pcs) - JDO Method

JDO Method in javax.jdo. PersistenceManager void makeTransientAll (   boolean  ... management by this PersistenceManager . If the useFetchPlan parameter is false, this method behaves exactly ... and are no longer associated with any PersistenceManager . The state of fields is unchanged. If the useFetchPlan

PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method

JDO Method in javax.jdo. PersistenceManager void makeTransientAll (   Object[] pcs ... management by this PersistenceManager . If the useFetchPlan parameter is false, this method behaves exactly ... associated with any PersistenceManager . The state of fields is unchanged. If the useFetchPlan

PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method

JDO Method in javax.jdo. PersistenceManager void makeTransientAll (   Collection pcs ... management by this PersistenceManager . If the useFetchPlan parameter is false, this method behaves exactly ... and are no longer associated with any PersistenceManager . The state of fields is unchanged. If the useFetchPlan

PersistenceManager.makeTransient(pc,useFetchPlan) - JDO Method

JDO Method in javax.jdo. PersistenceManager void makeTransient (   Object pc,  ... this PersistenceManager . If the useFetchPlan parameter is false, this method behaves exactly as ... with any PersistenceManager . The state of fields is unchanged. If the useFetchPlan parameter

PersistenceManager.makeTransientAll(pcs) - JDO Method

JDO Method in javax.jdo. PersistenceManager void makeTransientAll (   Collection pcs ... this PersistenceManager . The instances lose their JDO identity and they are no longer associated with any PersistenceManager . The state of fields is preserved unchanged. Parameters: pcs - the instances to make transient. Since: JDO 1.0

PersistenceManager.makeTransientAll(pcs) - JDO Method

JDO Method in javax.jdo. PersistenceManager void makeTransientAll (   Object... pcs ) Make an array of instances transient, removing them from management by this PersistenceManager . The instances lose their JDO identity and they are no longer associated with any PersistenceManager

PersistenceManager.makeTransient(pc) - JDO Method

JDO Method in javax.jdo. PersistenceManager void makeTransient (   Object pc ) Make an instance transient, removing it from management by this PersistenceManager . The instance loses its JDO identity and it is no longer associated with any PersistenceManager . The state of fields

PersistenceManager.retrieveAll(pcs) - JDO Method

JDO Method in javax.jdo. PersistenceManager void retrieveAll (   Object... pcs ) Retrieve field values of instances from the store. This tells the PersistenceManager that the application intends to use the instances, and all field values must be retrieved. The PersistenceManager

PersistenceManager.retrieveAll(pcs) - JDO Method

JDO Method in javax.jdo. PersistenceManager void retrieveAll (   Collection pcs ) Retrieve field values of instances from the store. This tells the PersistenceManager that the application intends to use the instances, and all field values must be retrieved. The PersistenceManager

PersistenceManager.retrieve(pc) - JDO Method

JDO Method in javax.jdo. PersistenceManager void retrieve (   Object pc ) Retrieve field values of an instance from the store. This tells the PersistenceManager that the application intends to use the instance, and its field values must be retrieved. The PersistenceManager might use

PersistenceManager.getObjectById(oid,validate) - JDO Method

JDO Method in javax.jdo. PersistenceManager Object getObjectById (   Object oid ... of instances managed by this PersistenceManager . The getObjectById method attempts to find an instance in ... the application. If the PersistenceManager is unable to resolve the oid parameter to an ObjectId instance

PersistenceManager.evict(pc) - JDO Method

JDO Method in javax.jdo. PersistenceManager void evict (   Object pc ) Mark ... the PersistenceManager at transaction completion. This method allows the application to explicitly provide a hint to the PersistenceManager that the instance is no longer needed in the cache. Parameters: pc - the instance to evict from the cache. Since: JDO 1.0

PersistenceManager.isClosed() - JDO Method

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

PersistenceManager.getFetchPlan() - JDO Method

JDO Method in javax.jdo. PersistenceManager FetchPlan getFetchPlan () Returns the FetchPlan used by this PersistenceManager . Return: the FetchPlan Since: JDO 2.0

PersistenceManager.getMultithreaded() - JDO Method

JDO Method in javax.jdo. PersistenceManager boolean getMultithreaded () Get the current Multithreaded flag for this PersistenceManager . Return: the Multithreaded setting. See Also: setMultithreaded Since: JDO 1.0

PersistenceManager.getIgnoreCache() - JDO Method

JDO Method in javax.jdo. PersistenceManager boolean getIgnoreCache () Get the ignoreCache setting for queries. IgnoreCache set to true specifies that for all Query instances created by this PersistenceManager , the default is the cache should be ignored for queries. Return: the ignoreCache setting. Since: JDO 1.0

PersistenceManager.setIgnoreCache(flag) - JDO Method

JDO Method in javax.jdo. PersistenceManager void setIgnoreCache (   boolean flag ) Set the ignoreCache parameter for queries. IgnoreCache set to true specifies that for all Query instances created by this PersistenceManager , the default is the cache should be ignored for queries. Parameters: flag - the ignoreCache setting. Since: JDO 1.0

PersistenceManager.retrieveAll(useFetchPlan,pcs) - JDO Method

JDO Method in javax.jdo. PersistenceManager void retrieveAll (   boolean useFetchPlan,    Object... pcs ) Retrieve field values of instances from the store. This tells the PersistenceManager that the application intends to use the instances, and their field values

PersistenceManager.checkConsistency() - JDO Method

JDO Method in javax.jdo. PersistenceManager void checkConsistency () Validates the PersistenceManager cache with the datastore. This method has no effect if a transaction is not active. If a datastore transaction is active, this method verifies the consistency of instances in the cache

PersistenceManager.detachCopyAll(pcs) - JDO Method

JDO Method in javax.jdo. PersistenceManager Collection detachCopyAll (   Collection  pcs ) Detach the specified instances from the PersistenceManager . The flags for detachment (DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching

PersistenceManager.detachCopy(pc) - JDO Method

JDO Method in javax.jdo. PersistenceManager T detachCopy (   T pc ) Detach the specified instance from the PersistenceManager . The flags for detachment (DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching for the graph

PersistenceManager.detachCopyAll(pcs) - JDO Method

JDO Method in javax.jdo. PersistenceManager T[] detachCopyAll (   T... pcs ) Detach the specified instances from the PersistenceManager . The flags for detachment (DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching for the graph

PersistenceManager.retrieveAll(pcs,useFetchPlan) - JDO Method

JDO Method in javax.jdo. PersistenceManager void retrieveAll (   Collection pcs,    boolean useFetchPlan ) Retrieve field values of instances from the store. This tells the PersistenceManager that the application intends to use the instances, and their field

PersistenceManager.retrieveAll(pcs,useFetchPlan) - JDO Method

JDO Method in javax.jdo. PersistenceManager void retrieveAll (   Object[] pcs,    boolean useFetchPlan ) Retrieve field values of instances from the store. This tells the PersistenceManager that the application intends to use the instances, and their field values

PersistenceManager.retrieve(pc,useFetchPlan) - JDO Method

JDO Method in javax.jdo. PersistenceManager void retrieve (   Object pc,    boolean useFetchPlan ) Retrieve field values of an instance from the store. This tells the PersistenceManager that the application intends to use the instance, and its field values

PersistenceManager.getExtent(persistenceCapableClass,subclasses) - JDO Method

JDO Method in javax.jdo. PersistenceManager Extent getExtent (   Class  persistenceCapableClass,    boolean subclasses ) The PersistenceManager manages a collection of instances in the data store based on the class of the instances. This method returns an Extent

PersistenceManager.deletePersistent(pc) - JDO Method

JDO Method in javax.jdo. PersistenceManager void deletePersistent (   Object pc ) Delete the persistent instance from the data store. This method must be called in an active ... JDOUserException if the instance is transient or is managed by another PersistenceManager . Parameters: pc - a persistent instance Since: JDO 1.0

PersistenceManager.newQuery(compiled) - JDO Method

JDO Method in javax.jdo. PersistenceManager Query newQuery (   Object compiled ) Create a new Query using elements from another Query . The other Query must have been created by the same JDO implementation. It might be active in a different PersistenceManager or

[ODB1] Chapter 7 - JDOQL Queries

instance is constructed by one of the PersistenceManager 's newQuery( ... ) methods. For example, in ... specified when invoking one of the PersistenceManager interface newQuery methods can be assigned later

PersistenceManager.getManagedObjects(states,classes) - JDO Method

JDO Method in javax.jdo. PersistenceManager Set getManagedObjects (   EnumSet  states,    Class... classes ) Get the objects managed by this persistence manager having the specified object states and being instances of the specified classes. Parameters: states

PersistenceManager.getManagedObjects(classes) - JDO Method

JDO Method in javax.jdo. PersistenceManager Set getManagedObjects (   Class... classes ) Get the objects managed by this persistence manager being instances of the specified classes. Parameters: classes - The classes of objects that we are interested in Return: the objects Since: JDO 2.1

PersistenceManager.getManagedObjects(states) - JDO Method

JDO Method in javax.jdo. PersistenceManager Set getManagedObjects (   EnumSet  states ) Get the objects managed by this persistence manager having the specified object states. Parameters: states - The states of objects that we are interested in Return: the objects Since: JDO 2.1

PersistenceManager.getManagedObjects() - JDO Method

JDO Method in javax.jdo. PersistenceManager Set getManagedObjects () Get the objects managed by this persistence manager. Return: the objects Since: JDO 2.1

PersistenceManager.removeInstanceLifecycleListener(listener) - JDO Method

JDO Method in javax.jdo. PersistenceManager void removeInstanceLifecycleListener (    InstanceLifecycleListener  listener ) Removes the listener instance from the list of lifecycle event listeners. Parameters: listener - the listener instance to be removed Since: JDO 2.0

PersistenceManager.addInstanceLifecycleListener(listener,classes) - JDO Method

JDO Method in javax.jdo. PersistenceManager void addInstanceLifecycleListener (    InstanceLifecycleListener  listener,    Class... classes ) Adds the listener instance to the list of lifecycle event listeners. The classes parameter identifies all of the classes

PersistenceManager.getServerDate() - JDO Method

JDO Method in javax.jdo. PersistenceManager Date getServerDate () Get the Date as seen by the server. Clients using this method can order their operations according to a single time source. Implementations use the setting of the server time zone to prepare a Date instance that represents UTC time

PersistenceManager.newInstance(pcClass) - JDO Method

JDO Method in javax.jdo. PersistenceManager T newInstance (   Class  pcClass ) Creates an instance of a persistence-capable interface, or of a concrete or abstract class. The returned instance is transient. Parameters: pcClass - Must be a persistence-capable interface, or a concrete