Package cz.cvut.kbss.ontodriver.util
Class Transaction
java.lang.Object
cz.cvut.kbss.ontodriver.util.Transaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks successful completion of transaction commit.voidMarks successful finish of transaction rollback.voidbegin()Begins a transaction.voidcommit()Marks the beginning of transaction commit.booleangetState()inthashCode()booleanisActive()voidrollback()Commences transaction rollback.toString()voidVerifies that the transaction is active.
-
Constructor Details
-
Transaction
public Transaction()
-
-
Method Details
-
begin
public void begin()Begins a transaction. -
commit
public void commit()Marks the beginning of transaction commit.- See Also:
-
afterCommit
public void afterCommit()Marks successful completion of transaction commit.- See Also:
-
rollback
public void rollback()Commences transaction rollback.- See Also:
-
afterRollback
public void afterRollback()Marks successful finish of transaction rollback.- See Also:
-
isActive
public boolean isActive() -
getState
-
verifyActive
public void verifyActive()Verifies that the transaction is active.- Throws:
IllegalStateException- When transaction is not active
-
hashCode
public int hashCode() -
equals
-
toString
-