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 TypeMethodDescriptionvoid
commit()
Commit the transaction.<T extends StoredObject>
T<T extends StoredObject>
Tget
(T 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.void
rollback()
Rollback the transaction.void
Skip limit check for this 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
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.
-