|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.orientechnologies.jdo.oPersistenceManagerMT
Orient JDO implementation of PersistenceManager interface, the most important one for the user application. This class works with sychronization and instances can be used by more threads cuncurrently. To create a oPersistenceManagerMT object you had to use the factory class: oPersistenceManagerFactory.getPersistenceManager() setting multi-threads mode, the default.
oPersistenceManagerFactory,
oPersistenceManagerMT,
Serialized Form| Constructor Summary | |
protected |
oPersistenceManagerMT(PersistenceManagerFactory iFactory,
com.orientechnologies.jdo.engine.oEngineLoader iEngine,
oOrientURL iUrl,
java.lang.String iUserName,
java.lang.String iUserPasswd,
java.util.Properties iDefProp)
Create a persistence manager based on Orient datastore. |
| Method Summary | |
void |
bindObject(java.lang.String iName,
java.lang.Object iObject)
|
void |
close()
Close this PersistenceManager so that no further requests may be
made on it. |
oOID |
createStreamById(java.lang.String iClassName,
oBinary iObject)
|
Transaction |
currentTransaction()
Return the Transaction instance associated with a PersistenceManager.
|
void |
deleteObjectById(java.lang.Object iOid)
|
void |
deletePersistent(java.lang.Object iObj)
Delete the persistent instance from the data store. |
void |
deletePersistentAll(java.util.Collection iObjColl)
Delete a Collection of instances from the data store. |
void |
deletePersistentAll(java.lang.Object[] iObjArray)
Delete an array of instances from the data store. |
void |
evict(java.lang.Object parm1)
Mark an instance as no longer needed in the cache. |
void |
evictAll()
Mark all persistent-nontransactional instances as no longer needed in the cache. |
void |
evictAll(java.util.Collection parm1)
Mark a Collection of instances as no longer needed in the cache. |
void |
evictAll(java.lang.Object[] parm1)
Mark an array of instances as no longer needed in the cache. |
int |
getConnectionId()
|
int |
getDatabaseId()
|
java.lang.String |
getDatabaseName()
|
java.text.DateFormat |
getDateFormat()
|
java.lang.String |
getDateFormatString()
|
d_Dictionary |
getDictionary()
|
oSysFolder |
getDirectory()
|
com.orientechnologies.jdo.interfaces.oDomain |
getDomain()
|
com.orientechnologies.jdo.engine.oEngineLoader |
getEngine()
|
Extent |
getExtent(java.lang.Class parm1,
boolean parm2)
The PersistenceManager manages a collection of instances in the data
store based on the class of the instances. |
boolean |
getIgnoreCache()
Get the ignoreCache setting for queries. |
boolean |
getMultithreaded()
Get the current Multithreaded flag for this PersistenceManager. |
java.lang.Object |
getObjectById(java.lang.Object iOid,
boolean iValidate)
This method locates a persistent instance in the cache of instances managed by this PersistenceManager.
|
java.lang.Object |
getObjectId(java.lang.Object iObject)
The ObjectId returned by this method represents the JDO identity of the instance. |
java.lang.Class |
getObjectIdClass(java.lang.Class parm1)
Return the Class that implements the JDO Identity for the
specified PersistenceCapable class. |
oOrientURL |
getOrientURL()
|
PersistenceManagerFactory |
getPersistenceManagerFactory()
This method returns the PersistenceManagerFactory used to create
this PersistenceManager. |
java.util.Properties |
getProperties()
|
oSysDatabase |
getSchema()
|
int |
getSessionId()
|
oBinary |
getStreamById(java.lang.Object iOid)
|
java.lang.Object |
getTransactionalObjectId(java.lang.Object p0)
The ObjectId returned by this method represents the JDO identity of the instance. |
java.lang.String |
getURL()
|
java.lang.Object |
getUserObject()
The application can manage the PersistenceManager instances
more easily by having an application object associated with each
PersistenceManager instance. |
boolean |
isClosed()
A PersistenceManager instance can be used until it is closed. |
boolean |
isUsingDynaObjects()
|
java.lang.Object |
lookupObject(java.lang.String iName)
|
void |
makeDirty(java.lang.Object iObj)
|
void |
makeNontransactional(java.lang.Object parm1)
Make an instance non-transactional after commit. |
void |
makeNontransactionalAll(java.util.Collection parm1)
Make a Collection of instances non-transactional after commit. |
void |
makeNontransactionalAll(java.lang.Object[] parm1)
Make an array of instances non-transactional after commit. |
void |
makePersistent(java.lang.Object iObj)
Make the transient instance persistent in this PersistenceManager.
|
void |
makePersistentAll(java.util.Collection iObjColl)
Make a Collection of instances persistent. |
void |
makePersistentAll(java.lang.Object[] iObjArray)
Make an array of instances persistent. |
void |
makeTransactional(java.lang.Object parm1)
Make an instance subject to transactional boundaries. |
void |
makeTransactionalAll(java.util.Collection parm1)
Make a Collection of instances subject to transactional boundaries. |
void |
makeTransactionalAll(java.lang.Object[] parm1)
Make an array of instances subject to transactional boundaries. |
void |
makeTransient(java.lang.Object parm1)
Make an instance transient, removing it from management by this PersistenceManager.
|
void |
makeTransientAll(java.util.Collection parm1)
Make a Collection of instances transient, removing them from
management by this PersistenceManager.
|
void |
makeTransientAll(java.lang.Object[] parm1)
Make an array of instances transient, removing them from management by this PersistenceManager.
|
java.lang.Object |
newObjectIdInstance(java.lang.Class iClass,
java.lang.String iValue)
This method returns an object id instance corresponding to the Class
and String arguments. |
Query |
newQuery()
Create a new Query with no elements. |
Query |
newQuery(java.lang.Class iClass)
Create a new Query specifying the Class of the candidate instances. |
Query |
newQuery(java.lang.Class parm1,
java.util.Collection parm2)
Create a new Query with the candidate Class
and Collection. |
Query |
newQuery(java.lang.Class parm1,
java.util.Collection parm2,
java.lang.String parm3)
Create a new Query with the Class of the candidate instances,
candidate Collection, and filter. |
Query |
newQuery(java.lang.Class iClass,
java.lang.String iFilter)
Create a new Query with the Class of the
candidate instances and filter. |
Query |
newQuery(Extent parm1)
Create a new Query with the Class of the
candidate instances and candidate Extent. |
Query |
newQuery(Extent parm1,
java.lang.String parm2)
Create a new Query with the
candidate Extent and filter; the class
is taken from the Extent. |
Query |
newQuery(java.lang.Object parm1)
Create a new Query using elements from another Query.
|
Query |
newQuery(java.lang.String p0,
java.lang.Object p1)
Create a new Query using the specified language. |
Query |
newQuery(java.lang.String iClassName,
java.lang.String iFilter)
|
void |
refresh(java.lang.Object parm1)
Refresh the state of the instance from the data store. |
void |
refreshAll()
Refresh the state of all applicable instances from the data store. |
void |
refreshAll(java.util.Collection parm1)
Refresh the state of a Collection of instances from the data store. |
void |
refreshAll(java.lang.Object[] parm1)
Refresh the state of an array of instances from the data store. |
void |
reopen()
|
void |
retrieve(java.lang.Object iObject)
Retrieve field values of an instance from the store. |
void |
retrieveAll(java.util.Collection iObjects)
Retrieve field values of instances from the store. |
void |
retrieveAll(java.util.Collection iObjects,
boolean iDFGOnly)
Retrieve field values of instances from the store. |
void |
retrieveAll(java.lang.Object[] iObjects)
Retrieve field values of instances from the store. |
void |
retrieveAll(java.lang.Object[] iObjects,
boolean iDFGOnly)
Retrieve field values of instances from the store. |
void |
setConnectionId(int connectionId)
|
void |
setDatabaseId(int iDatabaseId)
|
void |
setIgnoreCache(boolean iValue)
Set the ignoreCache parameter for queries. |
void |
setMultithreaded(boolean iMT)
Set PersistenceManager to work thread-safe. |
void |
setSessionId(int iSessionId)
|
void |
setStreamById(java.lang.Object iOid,
oBinary iObject)
|
void |
setUserObject(java.lang.Object parm1)
The application can manage the PersistenceManager instances
more easily by having an application object associated with each
PersistenceManager instance. |
void |
setUsingDynaObjects(boolean iValue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected oPersistenceManagerMT(PersistenceManagerFactory iFactory,
com.orientechnologies.jdo.engine.oEngineLoader iEngine,
oOrientURL iUrl,
java.lang.String iUserName,
java.lang.String iUserPasswd,
java.util.Properties iDefProp)
throws JDOException
iFactory - PersistenceManagerFactory parent instanceiUrl - URL of database to openiUserName - User nameiUserPasswd - User passwordiDefProp - Additional properties for databaseoPersistenceManagerFactory,
oPersistenceManagerST| Method Detail |
public void close()
PersistenceManagerPersistenceManager 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
PersistenceManagers, or might be garbage collected, at the option of
the JDO implementation. Before being used again to satisfy a
getPersistenceManager() request, the default values for options will
be restored to their values as specified in the PersistenceManagerFactory.
This method closes the PersistenceManager.
close in interface PersistenceManagerpublic Transaction currentTransaction()
PersistenceManagerTransaction instance associated with a PersistenceManager.
There is one Transaction instance associated with each PersistenceManager
instance. The Transaction instance supports options as well as
transaction completion requests.
currentTransaction in interface PersistenceManagerTransaction associated with this
PersistenceManager.public void deletePersistent(java.lang.Object iObj)
PersistenceManagermakePersistent, which makes the closure of the instance persistent,
the closure of the instance is not deleted from the data store.
This method has no effect if the instance is already deleted in the
current transaction.
This method throws JDOUserException if the instance is transient or
is managed by another PersistenceManager.
deletePersistent in interface PersistenceManageriObj - a persistent instancepublic void deletePersistentAll(java.util.Collection iObjColl)
PersistenceManagerCollection of instances from the data store.
deletePersistentAll in interface PersistenceManageriObjColl - a Collection of persistent instancesPersistenceManager.deletePersistent(Object pc)public void deletePersistentAll(java.lang.Object[] iObjArray)
PersistenceManager
deletePersistentAll in interface PersistenceManageriObjArray - a Collection of persistent instancesPersistenceManager.deletePersistent(Object pc)public void evict(java.lang.Object parm1)
PersistenceManagerPersistenceManager
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.
evict in interface PersistenceManagerparm1 - the instance to evict from the cache.public void evictAll(java.util.Collection parm1)
PersistenceManagerCollection of instances as no longer needed in the cache.
evictAll in interface PersistenceManagerparm1 - the Collection of instances to evict from the cache.PersistenceManager.evict(Object pc)public void evictAll(java.lang.Object[] parm1)
PersistenceManager
evictAll in interface PersistenceManagerparm1 - the array of instances to evict from the cache.PersistenceManager.evict(Object pc)public void evictAll()
PersistenceManager
evictAll in interface PersistenceManagerPersistenceManager.evict(Object pc)
public Extent getExtent(java.lang.Class parm1,
boolean parm2)
PersistenceManagerPersistenceManager manages a collection of instances in the data
store based on the class of the instances. This method returns an
Extent of instances in the data store that might be iterated or
given to a Query. The Extent itself might not reference any
instances, but only hold the class name and an
indicator as to whether subclasses are included in the Extent.
Note that the Extent might be very large.
getExtent in interface PersistenceManagerparm1 - Class of instancesparm2 - whether to include instances of subclasses
Extent of the specified ClassQuerypublic boolean getIgnoreCache()
PersistenceManagerIgnoreCache set to true specifies that for all Query instances created by this
PersistenceManager, the default is the cache should be ignored for queries.
getIgnoreCache in interface PersistenceManager
public java.lang.Object getObjectById(java.lang.Object iOid,
boolean iValidate)
PersistenceManagerPersistenceManager.
The getObjectById method attempts
to find an instance in the cache with the specified JDO identity.
The oid parameter object might have been returned by an earlier call
to getObjectId or getTransactionalObjectId,
or might have been constructed by the application.
If the PersistenceManager is unable to resolve the oid parameter
to an ObjectId instance, then it throws a JDOUserException.
If the validate flag is false, and there is already an instance in the
cache with the same JDO identity as the oid parameter, then this method
returns it. There is no change made to the state of the returned
instance.
If there is not an instance already in the cache with the same JDO
identity as the oid parameter, then this method creates an instance
with the specified JDO identity and returns it. If there is no
transaction in progress, the returned instance will be hollow or
persistent-nontransactional, at the choice of the implementation.
If there is a transaction in progress, the returned instance will be hollow, persistent-nontransactional, or persistent-clean, at the choice of the implementation.
It is an implementation decision whether to access the data store,
if required to determine the exact class. This will be the case of
inheritance, where multiple PersistenceCapable classes share the
same ObjectId class.
If the validate flag is false, and the instance does not exist in
the data store, then this method might not fail. It is an
implementation choice whether to fail immediately with a
JDODataStoreException. But a subsequent access of the fields of the
instance will throw a JDODataStoreException if the instance does not
exist at that time. Further, if a relationship is established to this
instance, then the transaction in which the association was made will
fail.
If the validate flag is true, and there is already a transactional
instance in the cache with the same JDO identity as the oid parameter,
then this method returns it. There is no change made to the state of
the returned instance.
If there is an instance already in the cache with the same JDO
identity as the oid parameter, but the instance is not transactional,
then it must be verified in the data store. If the instance does not
exist in the datastore, then a JDODataStoreException is thrown.
If there is not an instance already in the cache with the same JDO
identity as the oid parameter, then this method creates an instance
with the specified JDO identity, verifies that it exists in the data
store, and returns it. If there is no transaction in progress, the
returned instance will be hollow or persistent-nontransactional,
at the choice of the implementation.
If there is a data store transaction in progress, the returned instance will be persistent-clean. If there is an optimistic transaction in progress, the returned instance will be persistent-nontransactional.
getObjectById in interface PersistenceManageriOid - an ObjectIdiValidate - if the existence of the instance is to be validated
PersistenceCapable instance with the specified ObjectIdPersistenceManager.getObjectId(Object pc),
PersistenceManager.getTransactionalObjectId(Object pc)public oBinary getStreamById(java.lang.Object iOid)
getStreamById in interface oPersistenceManager
public void setStreamById(java.lang.Object iOid,
oBinary iObject)
setStreamById in interface oPersistenceManager
public oOID createStreamById(java.lang.String iClassName,
oBinary iObject)
createStreamById in interface oPersistenceManagerpublic void deleteObjectById(java.lang.Object iOid)
deleteObjectById in interface oPersistenceManager
public java.lang.Object newObjectIdInstance(java.lang.Class iClass,
java.lang.String iValue)
PersistenceManagerClass
and String arguments. The String argument might have been the
result of executing toString on an object id instance.
newObjectIdInstance in interface PersistenceManageriClass - the Class of the persistence-capable instanceiValue - the String form of the object id
public java.lang.Object getObjectId(java.lang.Object iObject)
PersistenceManagerThe getObjectId method returns an ObjectId instance that represents
the object identity of the specified JDO instance. The identity is
guaranteed to be unique only in the context of the JDO
PersistenceManager that created the identity, and only for two types
of JDO Identity: those that are managed by the application, and
those that are managed by the data store.
If the object identity is being changed in the transaction, by the
application modifying one or more of the application key fields,
then this method returns the identity as of the beginning of the
transaction. The value returned by getObjectId will be different
following afterCompletion processing for successful transactions.
Within a transaction, the ObjectId returned will compare equal to
the ObjectId returned by only one among all JDO instances associated
with the PersistenceManager regardless of the type of ObjectId.
The ObjectId does not necessarily contain any internal state of the instance, nor is it necessarily an instance of the class used to manage identity internally. Therefore, if the application makes a change to the ObjectId instance returned by this method, there is no effect on the instance from which the ObjectId was obtained.
The getObjectById method can be used between instances of
PersistenceManager of different JDO vendors only for instances of
persistence capable classes using application-managed (primary key)
JDO identity. If it is used for instances of classes using datastore
identity, the method might succeed, but there are no guarantees that
the parameter and return instances are related in any way.
getObjectId in interface PersistenceManageriObject - the PersistenceCapable instance
PersistenceManager.getTransactionalObjectId(Object pc),
PersistenceManager.getObjectById(Object oid, boolean validate)public java.lang.Class getObjectIdClass(java.lang.Class parm1)
PersistenceManagerClass that implements the JDO Identity for the
specified PersistenceCapable class. The application can use the
returned Class to construct a JDO Identity instance for
application identity PersistenceCapable classes. This JDO Identity
instance can then be used to get an instance of the
PersistenceCapable class for use in the application.
In order for the application to construct an instance of the ObjectId class it needs to know the class being used by the JDO implementation.
getObjectIdClass in interface PersistenceManagerparm1 - the PersistenceCapable Class
Class of the ObjectId of the parameterPersistenceManager.getObjectById(java.lang.Object, boolean)public PersistenceManagerFactory getPersistenceManagerFactory()
PersistenceManagerPersistenceManagerFactory used to create
this PersistenceManager.
getPersistenceManagerFactory in interface PersistenceManagerPersistenceManagerFactory that created
this PersistenceManagerpublic java.util.Properties getProperties()
getProperties in interface oPersistenceManagerpublic java.lang.Object getTransactionalObjectId(java.lang.Object p0)
PersistenceManagerIf the object identity is being changed in the transaction, by the application modifying one or more of the application key fields, then this method returns the current identity in the transaction.
If there is no transaction in progress, or if none of the key fields
is being modified, then this method will return the same value as
getObjectId.
getTransactionalObjectId in interface PersistenceManagerp0 - a PersistenceCapable instance
PersistenceManager.getObjectId(Object pc),
PersistenceManager.getObjectById(Object oid, boolean validate)public java.lang.Object getUserObject()
PersistenceManagerPersistenceManager instances
more easily by having an application object associated with each
PersistenceManager instance.
getUserObject in interface PersistenceManagerPersistenceManagerPersistenceManager.setUserObject(java.lang.Object)public boolean isClosed()
isClosed in interface PersistenceManagerclose()public void makeNontransactional(java.lang.Object parm1)
PersistenceManagerNormally, at transaction completion, instances are evicted from the cache. This method allows an application to identify an instance as not being evicted from the cache at transaction completion. Instead, the instance remains in the cache with nontransactional state.
makeNontransactional in interface PersistenceManagerparm1 - the instance to make nontransactional.public void makeNontransactionalAll(java.util.Collection parm1)
PersistenceManagerCollection of instances non-transactional after commit.
makeNontransactionalAll in interface PersistenceManagerparm1 - the Collection of instances to make nontransactional.PersistenceManager.makeNontransactional(Object pc)public void makeNontransactionalAll(java.lang.Object[] parm1)
PersistenceManager
makeNontransactionalAll in interface PersistenceManagerparm1 - the array of instances to make nontransactional.PersistenceManager.makeNontransactional(Object pc)public void makeDirty(java.lang.Object iObj)
makeDirty in interface oPersistenceManagerpublic void makePersistent(java.lang.Object iObj)
PersistenceManagerPersistenceManager.
This method must be called in an active transaction.
The PersistenceManager assigns an ObjectId to the instance and
transitions it to persistent-new.
The instance will be managed in the Extent associated with its Class.
The instance will be put into the data store at commit.
The closure of instances of PersistenceCapable classes
reachable from persistent
fields will be made persistent at commit. [This is known as
persistence by reachability.]
makePersistent in interface PersistenceManageriObj - a transient instance of a Class that implements
PersistenceCapablepublic void makePersistentAll(java.util.Collection iObjColl)
PersistenceManagerCollection of instances persistent.
makePersistentAll in interface PersistenceManageriObjColl - a Collection of transient instancesPersistenceManager.makePersistent(Object pc)public void makePersistentAll(java.lang.Object[] iObjArray)
PersistenceManager
makePersistentAll in interface PersistenceManageriObjArray - an array of transient instancesPersistenceManager.makePersistent(Object pc)public void makeTransactional(java.lang.Object parm1)
PersistenceManagerTransient instances normally do not observe transaction boundaries. This method makes transient instances sensitive to transaction completion. If an instance is modified in a transaction, and the transaction rolls back, the state of the instance is restored to the state before the first change in the transaction.
For persistent instances read in optimistic transactions, this method allows the application to make the state of the instance part of the transactional state. At transaction commit, the state of the instance in the cache is compared to the state of the instance in the data store. If they are not the same, then an exception is thrown.
makeTransactional in interface PersistenceManagerparm1 - the instance to make transactional.public void makeTransactionalAll(java.util.Collection parm1)
PersistenceManagerCollection of instances subject to transactional boundaries.
makeTransactionalAll in interface PersistenceManagerparm1 - the Collection of instances to make transactional.PersistenceManager.makeTransactional(Object pc)public void makeTransactionalAll(java.lang.Object[] parm1)
PersistenceManager
makeTransactionalAll in interface PersistenceManagerparm1 - the array of instances to make transactional.PersistenceManager.makeTransactional(Object pc)public void makeTransient(java.lang.Object parm1)
PersistenceManagerPersistenceManager.
The instance loses its JDO identity and it is no longer associated
with any PersistenceManager. The state of fields is preserved unchanged.
makeTransient in interface PersistenceManagerparm1 - the instance to make transient.public void makeTransientAll(java.util.Collection parm1)
PersistenceManagerCollection 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. The state of fields is preserved unchanged.
makeTransientAll in interface PersistenceManagerparm1 - the instances to make transient.public void makeTransientAll(java.lang.Object[] parm1)
PersistenceManagerPersistenceManager.
The instances lose their JDO identity and they are no longer associated
with any PersistenceManager. The state of fields is preserved unchanged.
makeTransientAll in interface PersistenceManagerparm1 - the instances to make transient.public Query newQuery()
PersistenceManagerQuery with no elements.
newQuery in interface PersistenceManagerQuery.
public Query newQuery(java.lang.String p0,
java.lang.Object p1)
PersistenceManagerQuery using the specified language.
newQuery in interface PersistenceManagerp0 - the language of the query parameterp1 - the query, which is of a form determined by the language
Querypublic Query newQuery(java.lang.Class iClass)
PersistenceManagerQuery specifying the Class of the candidate instances.
newQuery in interface PersistenceManageriClass - the Class of the candidate instances
Query
public Query newQuery(java.lang.Class iClass,
java.lang.String iFilter)
PersistenceManagerQuery with the Class of the
candidate instances and filter.
newQuery in interface PersistenceManageriClass - the Class of resultsiFilter - the filter for candidate instances
Query
public Query newQuery(java.lang.String iClassName,
java.lang.String iFilter)
newQuery in interface oPersistenceManager
public Query newQuery(java.lang.Class parm1,
java.util.Collection parm2)
PersistenceManagerQuery with the candidate Class
and Collection.
newQuery in interface PersistenceManagerparm1 - the Class of resultsparm2 - the Collection of candidate instances
Query
public Query newQuery(java.lang.Class parm1,
java.util.Collection parm2,
java.lang.String parm3)
PersistenceManagerQuery with the Class of the candidate instances,
candidate Collection, and filter.
newQuery in interface PersistenceManagerparm1 - the Class of candidate instancesparm2 - the Collection of candidate instancesparm3 - the filter for candidate instances
Querypublic Query newQuery(java.lang.Object parm1)
PersistenceManagerQuery 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 might have been serialized and restored.
All of the settings of the other Query are copied to this Query,
except for the candidate Collection or Extent.
newQuery in interface PersistenceManagerparm1 - another Query from the same JDO implementation
Querypublic Query newQuery(Extent parm1)
PersistenceManagerQuery with the Class of the
candidate instances and candidate Extent.
newQuery in interface PersistenceManagerparm1 - the Extent of candidate instances
Query
public Query newQuery(Extent parm1,
java.lang.String parm2)
PersistenceManagerQuery with the
candidate Extent and filter; the class
is taken from the Extent.
newQuery in interface PersistenceManagerparm1 - the Extent of candidate instancesparm2 - the filter for candidate instances
Querypublic void refresh(java.lang.Object parm1)
PersistenceManagerIn an optimistic transaction, the state of instances in the cache might not match the state in the data store. This method is used to reload the state of the instance from the data store so that a subsequent commit is more likely to succeed.
Outside a transaction, this method will refresh nontransactional state.
refresh in interface PersistenceManagerparm1 - the instance to refresh.public void refreshAll(java.util.Collection parm1)
PersistenceManagerCollection of instances from the data store.
refreshAll in interface PersistenceManagerparm1 - the Collection of instances to refresh.PersistenceManager.refresh(Object pc)public void refreshAll(java.lang.Object[] parm1)
PersistenceManager
refreshAll in interface PersistenceManagerparm1 - the array of instances to refresh.PersistenceManager.refresh(Object pc)public void refreshAll()
PersistenceManagerIf called with an active transaction, all transactional instances will be refreshed. If called outside an active transaction, all nontransactional instances will be refreshed.
refreshAll in interface PersistenceManagerPersistenceManager.refresh(Object pc)public void retrieve(java.lang.Object iObject)
PersistenceManagerPersistenceManager that the application intends to use the
instance, and its field values must be retrieved.
The PersistenceManager might use policy information about the
class to retrieve associated instances.
retrieve in interface PersistenceManageriObject - the instancepublic void retrieveAll(java.util.Collection iObjects)
PersistenceManagerPersistenceManager that the application intends to use the
instances, and all field values must be retrieved.
The PersistenceManager might use policy information about the
class to retrieve associated instances.
retrieveAll in interface PersistenceManageriObjects - the instances
public void retrieveAll(java.util.Collection iObjects,
boolean iDFGOnly)
PersistenceManagerPersistenceManager that the application intends to use the
instances, and their field values should be retrieved. The fields
in the default fetch group must be retrieved, and the implementation
might retrieve more fields than the default fetch group.
The PersistenceManager might use policy information about the
class to retrieve associated instances.
retrieveAll in interface PersistenceManageriObjects - the instancesiDFGOnly - whether to retrieve only the default fetch group fieldspublic void retrieveAll(java.lang.Object[] iObjects)
PersistenceManagerPersistenceManager that the application intends to use the
instances, and all field values must be retrieved.
The PersistenceManager might use policy information about the
class to retrieve associated instances.
retrieveAll in interface PersistenceManageriObjects - the instances
public void retrieveAll(java.lang.Object[] iObjects,
boolean iDFGOnly)
PersistenceManagerPersistenceManager that the application intends to use the
instances, and their field values should be retrieved. The fields
in the default fetch group must be retrieved, and the implementation
might retrieve more fields than the default fetch group.
The PersistenceManager might use policy information about the
class to retrieve associated instances.
retrieveAll in interface PersistenceManageriObjects - the instancesiDFGOnly - whether to retrieve only the default fetch group fieldspublic void reopen()
reopen in interface oPersistenceManagerpublic boolean getMultithreaded()
PersistenceManagerPersistenceManager.
getMultithreaded in interface PersistenceManagerPersistenceManager.setMultithreaded(boolean)public void setMultithreaded(boolean iMT)
setMultithreaded in interface PersistenceManageriMT - thread-safepublic void setIgnoreCache(boolean iValue)
PersistenceManagerIgnoreCache set to true specifies that for all Query instances created by this
PersistenceManager, the default is the cache should be ignored for queries.
setIgnoreCache in interface PersistenceManageriValue - the ignoreCache setting.public void setUserObject(java.lang.Object parm1)
PersistenceManagerPersistenceManager instances
more easily by having an application object associated with each
PersistenceManager instance.
setUserObject in interface PersistenceManagerparm1 - the user instance to be remembered by the PersistenceManagerPersistenceManager.getUserObject()public void setUsingDynaObjects(boolean iValue)
setUsingDynaObjects in interface oPersistenceManagerpublic boolean isUsingDynaObjects()
isUsingDynaObjects in interface oPersistenceManagerpublic java.lang.Object lookupObject(java.lang.String iName)
lookupObject in interface oPersistenceManager
public void bindObject(java.lang.String iName,
java.lang.Object iObject)
bindObject in interface oPersistenceManagerpublic java.lang.String getURL()
getURL in interface oPersistenceManagerpublic oOrientURL getOrientURL()
getOrientURL in interface oPersistenceManagerpublic java.lang.String getDatabaseName()
getDatabaseName in interface oPersistenceManagerpublic com.orientechnologies.jdo.interfaces.oDomain getDomain()
getDomain in interface oPersistenceManagerpublic oSysDatabase getSchema()
getSchema in interface oPersistenceManagerpublic d_Dictionary getDictionary()
getDictionary in interface oPersistenceManagerpublic oSysFolder getDirectory()
getDirectory in interface oPersistenceManagerpublic java.lang.String getDateFormatString()
getDateFormatString in interface oPersistenceManagerpublic java.text.DateFormat getDateFormat()
getDateFormat in interface oPersistenceManagerpublic int getConnectionId()
getConnectionId in interface oPersistenceManagerpublic void setConnectionId(int connectionId)
setConnectionId in interface oPersistenceManagerpublic int getDatabaseId()
getDatabaseId in interface oPersistenceManagerpublic void setDatabaseId(int iDatabaseId)
setDatabaseId in interface oPersistenceManagerpublic int getSessionId()
getSessionId in interface oPersistenceManagerpublic void setSessionId(int iSessionId)
setSessionId in interface oPersistenceManagerpublic com.orientechnologies.jdo.engine.oEngineLoader getEngine()
getEngine in interface oPersistenceManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||