Package com.storedobject.core
Class PseudoTransaction
java.lang.Object
com.storedobject.core.AbstractTransaction
com.storedobject.core.PseudoTransaction
- All Implemented Interfaces:
Transaction
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.core.Transaction
Transaction.CommitListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
Commit the transaction.<T extends StoredObject>
T<T extends StoredObject>
Tget
(T object) int
getId
(StoredObject object) boolean
isActive()
See if this transaction is active or not.boolean
isInvolved
(Id id) See if this Id is involved in this transaction or not.boolean
isInvolved
(StoredObject object) See if this object is involved in this transaction or not.void
replace
(Id idToReplace, StoredObject newObject) void
rollback()
Rollback the transaction.Methods inherited from class com.storedobject.core.AbstractTransaction
addCommitListener, getError, getId, getManager, hashCode, log, removeCommitListener, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.storedobject.core.Transaction
get, getSession, getUserId, logStackTrace, logStackTrace
-
Method Details
-
get
-
get
-
isInvolved
Description copied from interface:Transaction
See if this Id is involved in this transaction or not.- Parameters:
id
- Id to be checked.- Returns:
- True if involved.
-
isInvolved
Description copied from interface:Transaction
See if this object is involved in this transaction or not.- Parameters:
object
- Object to be checked.- Returns:
- True if involved.
-
getApprovalCount
public int getApprovalCount() -
commit
-
rollback
-
isActive
public boolean isActive()Description copied from interface:Transaction
See if this transaction is active or not.- Returns:
- True if active. False if already committed or rolled back.
-
getId
-
replace
-