Package cz.cvut.kbss.ontodriver.util
Class Transaction
java.lang.Object
cz.cvut.kbss.ontodriver.util.Transaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Marks successful completion of transaction commit.void
Marks successful finish of transaction rollback.void
begin()
Begins a transaction.void
commit()
Marks the beginning of transaction commit.boolean
getState()
int
hashCode()
boolean
isActive()
void
rollback()
Commences transaction rollback.toString()
void
Verifies 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
-