Class TransactionLogic
- java.lang.Object
-
- net.officefloor.tutorial.transactionhttpserver.TransactionLogic
-
public class TransactionLogic extends java.lang.Object
Transaction logic.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description TransactionLogic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.EOFException
commit(Post post, PostRepository repository)
void
fail(java.lang.Exception failure, PostRepository repository, TeamMarkerBean marker)
java.lang.IllegalArgumentException
rollback(Post post, PostRepository repository)
-
-
-
Method Detail
-
rollback
public java.lang.IllegalArgumentException rollback(Post post, PostRepository repository)
-
commit
public java.io.EOFException commit(Post post, PostRepository repository) throws java.io.EOFException
- Throws:
java.io.EOFException
-
fail
public void fail(@Parameter java.lang.Exception failure, PostRepository repository, TeamMarkerBean marker) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-