Package com.storedobject.core
Class DBTransaction
java.lang.Object
com.storedobject.core.AbstractTransaction
com.storedobject.core.DBTransaction
- All Implemented Interfaces:
Transaction
Transaction. All protected methods of this class are for internal purpose only.
- Author:
- Syam
-
Nested Class Summary
Nested ClassesNested 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) booleanisActive()See if this transaction is active or not.booleanisInvolved(Id id) See if this Id is involved in this transaction or not.voidrollback()Rollback the transaction.voidSkip limit check for this 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
getSession, getUserId, isInvolved, logStackTrace, logStackTrace
-
Method Details
-
skipLimitCheck
public void skipLimitCheck()Skip limit check for this transaction. -
get
-
get
-
get
-
isInvolved
See if this Id is involved in this transaction or not.- Parameters:
id- Id to be checked.- Returns:
- True if involved.
-
commit
-
rollback
public void rollback()Rollback the transaction. -
isActive
public boolean isActive()See if this transaction is active or not.- Returns:
- True if active. False if already committed or rolled back.
-