Package net.jextra.fauxjo.transaction
Class DummyTransaction
- java.lang.Object
-
- net.jextra.fauxjo.transaction.DummyTransaction
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TransactionInterface
public class DummyTransaction extends Object implements TransactionInterface
A "transaction" to literally do nothing. This is good for testing purposes where you do not really want to wrap something in a transaction.
-
-
Constructor Summary
Constructors Constructor Description DummyTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcommit()ConnectiongetConnection()voidrollback()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.jextra.fauxjo.transaction.TransactionInterface
finish
-
-
-
-
Method Detail
-
rollback
public void rollback()
- Specified by:
rollbackin interfaceTransactionInterface
-
commit
public void commit()
- Specified by:
commitin interfaceTransactionInterface
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTransactionInterface
-
getConnection
public Connection getConnection()
- Specified by:
getConnectionin interfaceTransactionInterface
-
-