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 TypeMethodDescriptionvoidcommit()Commit the transaction.<T extends StoredObject>
T<T extends StoredObject>
Tget(T object) intgetId(StoredObject object) booleanisActive()See if this transaction is active or not.booleanisInvolved(Id id) See if this Id is involved in this transaction or not.booleanisInvolved(StoredObject object) See if this object is involved in this transaction or not.voidreplace(Id idToReplace, StoredObject newObject) voidrollback()Rollback the transaction.Methods inherited from class com.storedobject.core.AbstractTransaction
addCommitListener, getError, getId, getManager, hashCode, log, removeCommitListener, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.storedobject.core.Transaction
get, getSession, getUserId, logStackTrace, logStackTrace
-
Method Details
-
get
-
get
-
isInvolved
Description copied from interface:TransactionSee 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:TransactionSee 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:TransactionSee if this transaction is active or not.- Returns:
- True if active. False if already committed or rolled back.
-
getId
-
replace
-