|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.orientechnologies.jdo.oTransaction
| Constructor Summary | |
oTransaction(oPersistenceManager iManager)
|
|
| Method Summary | |
void |
addObject(oOID iOid,
java.lang.Object iObj)
|
void |
begin()
Begin a transaction. |
void |
checkpoint()
|
protected void |
close()
|
void |
commit()
Commit the current transaction. |
protected void |
execute()
|
protected void |
finalize()
|
int |
getId()
|
boolean |
getNontransactionalRead()
If true, allows persistent instances to be read without
a transaction active. |
boolean |
getNontransactionalWrite()
If true, allows persistent instances to be written without
a transaction active. |
boolean |
getOptimistic()
Optimistic transactions do not hold data store locks until commit time. |
PersistenceManager |
getPersistenceManager()
The Transaction instance is always associated with exactly one
PersistenceManager. |
boolean |
getRestoreValues()
Return the current value of the restoreValues property. |
boolean |
getRetainValues()
If true, at commit time instances retain their field values. |
Synchronization |
getSynchronization()
The user-specified Synchronization instance for this Transaction instance. |
boolean |
isActive()
Returns whether there is a transaction currently active. |
java.lang.Object |
requestObject(oOID iOid)
|
void |
rollback()
Roll back the current transaction. |
void |
setNontransactionalRead(boolean parm1)
If true, allow persistent instances to be read without
a transaction active.
|
void |
setNontransactionalWrite(boolean parm1)
If true, allow persistent instances to be written without
a transaction active.
|
void |
setOptimistic(boolean parm1)
Optimistic transactions do not hold data store locks until commit time. |
void |
setRestoreValues(boolean iFlag)
If true, at rollback, fields of newly persistent instances
are restored to
their values as of the beginning of the transaction, and the instances
revert to transient. |
void |
setRetainValues(boolean parm1)
If true, at commit instances retain their values and the instances
transition to persistent-nontransactional.
|
void |
setSynchronization(Synchronization iSynch)
The user can specify a Synchronization instance to be notified on
transaction completions. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public oTransaction(oPersistenceManager iManager)
| Method Detail |
protected void finalize()
public void begin()
Transaction
begin in interface TransactionTransaction.setOptimistic(boolean),
Transaction.getOptimistic()public void checkpoint()
public void commit()
Transaction
commit in interface Transactionpublic void rollback()
Transaction
rollback in interface Transactionprotected void execute()
protected void close()
public boolean isActive()
Transaction
isActive in interface Transactiontrue if the transaction is active.public void setNontransactionalRead(boolean parm1)
Transactiontrue, allow persistent instances to be read without
a transaction active.
If an implementation does not support this option, a
JDOUnsupportedOptionException is thrown.
setNontransactionalRead in interface Transactionparm1 - the value of the nontransactionalRead propertypublic boolean getNontransactionalRead()
Transactiontrue, allows persistent instances to be read without
a transaction active.
getNontransactionalRead in interface Transactionpublic void setNontransactionalWrite(boolean parm1)
Transactiontrue, allow persistent instances to be written without
a transaction active.
If an implementation does not support this option, a
JDOUnsupportedOptionException is thrown.
setNontransactionalWrite in interface Transactionparm1 - the value of the nontransactionalRead propertypublic boolean getNontransactionalWrite()
Transactiontrue, allows persistent instances to be written without
a transaction active.
getNontransactionalWrite in interface Transactionpublic void setRetainValues(boolean parm1)
Transactiontrue, at commit instances retain their values and the instances
transition to persistent-nontransactional.
If an implementation does not support this option, a
JDOUnsupportedOptionException is thrown.
setRetainValues in interface Transactionparm1 - the value of the retainValues propertypublic boolean getRetainValues()
Transactiontrue, at commit time instances retain their field values.
getRetainValues in interface Transactionpublic boolean getRestoreValues()
Transaction
getRestoreValues in interface Transactionpublic void setRestoreValues(boolean iFlag)
Transactiontrue, at rollback, fields of newly persistent instances
are restored to
their values as of the beginning of the transaction, and the instances
revert to transient. Additionally, fields of modified
instances of primitive types and immutable reference types
are restored to their values as of the beginning of the
transaction.
If false, at rollback, the values of fields of
newly persistent instances are unchanged and the instances revert to
transient. Additionally, dirty instances transition to hollow.
If an implementation does not support this option, a
JDOUnsupportedOptionException is thrown.
setRestoreValues in interface TransactioniFlag - the value of the restoreValues propertypublic void setOptimistic(boolean parm1)
TransactionJDOUnsupportedOptionException is thrown.
setOptimistic in interface Transactionparm1 - the value of the Optimistic flag.public boolean getOptimistic()
Transaction
getOptimistic in interface Transactionpublic void setSynchronization(Synchronization iSynch)
TransactionSynchronization instance to be notified on
transaction completions. The beforeCompletion method is called prior
to flushing instances to the data store.
The afterCompletion method is called after performing state
transitions of persistent and transactional instances, following
the data store commit or rollback operation.
Only one Synchronization instance can be registered with the
Transaction. If the application requires more than one instance to
receive synchronization callbacks, then the single application instance
is responsible for managing them, and forwarding callbacks to them.
setSynchronization in interface TransactioniSynch - the Synchronization instance to be notified; null for nonepublic Synchronization getSynchronization()
TransactionSynchronization instance for this Transaction instance.
getSynchronization in interface TransactionSynchronization instance.public PersistenceManager getPersistenceManager()
TransactionTransaction instance is always associated with exactly one
PersistenceManager.
getPersistenceManager in interface TransactionPersistenceManager for this Transaction instancepublic java.lang.Object requestObject(oOID iOid)
public void addObject(oOID iOid,
java.lang.Object iObj)
public int getId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||