Package org.apache.jena.graph.impl
Class SimpleTransactionHandler
- java.lang.Object
-
- org.apache.jena.graph.impl.TransactionHandlerBase
-
- org.apache.jena.graph.impl.SimpleTransactionHandler
-
- All Implemented Interfaces:
TransactionHandler
public class SimpleTransactionHandler extends TransactionHandlerBase
-
-
Constructor Summary
Constructors Constructor Description SimpleTransactionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort()
If transactions are supported and there is a transaction in progress, abort it.void
begin()
If transactions are supported, begin a new transaction.void
commit()
If transactions are supported and there is a transaction in progress, commit it.boolean
transactionsSupported()
Does this handler support transactions at all?-
Methods inherited from class org.apache.jena.graph.impl.TransactionHandlerBase
calculate, execute
-
-
-
-
Method Detail
-
transactionsSupported
public boolean transactionsSupported()
Description copied from interface:TransactionHandler
Does this handler support transactions at all?- Returns:
- true iff begin/abort/commit are implemented and make sense.
-
begin
public void begin()
Description copied from interface:TransactionHandler
If transactions are supported, begin a new transaction. If transactions are not supported, or they are but this transaction is nested and nested transactions are not supported, throw an UnsupportedOperationException.
-
abort
public void abort()
Description copied from interface:TransactionHandler
If transactions are supported and there is a transaction in progress, abort it. If transactions are not supported, or there is no transaction in progress, throw an UnsupportedOperationException.
-
commit
public void commit()
Description copied from interface:TransactionHandler
If transactions are supported and there is a transaction in progress, commit it. If transactions are not supported, , or there is no transaction in progress, throw an UnsupportedOperationException.
-
-