com.github.smokestack.jpa
Class MockEntityTransaction
java.lang.Object
com.github.smokestack.jpa.MockEntityTransaction
- All Implemented Interfaces:
- EntityTransaction
public class MockEntityTransaction
- extends Object
- implements EntityTransaction
- Author:
- gliptak
mockState
protected MockEntityTransaction.EntityTransactionState mockState
isRollbackOnly
protected boolean isRollbackOnly
MockEntityTransaction
public MockEntityTransaction()
begin
public void begin()
- Specified by:
begin
in interface EntityTransaction
_begin
public void _begin()
commit
public void commit()
- Specified by:
commit
in interface EntityTransaction
_commit
public void _commit()
getRollbackOnly
public boolean getRollbackOnly()
- Specified by:
getRollbackOnly
in interface EntityTransaction
_getRollbackOnly
public boolean _getRollbackOnly()
isActive
public boolean isActive()
- Specified by:
isActive
in interface EntityTransaction
_isActive
public boolean _isActive()
rollback
public void rollback()
- Specified by:
rollback
in interface EntityTransaction
_rollback
public void _rollback()
setRollbackOnly
public void setRollbackOnly()
- Specified by:
setRollbackOnly
in interface EntityTransaction
_setRollbackOnly
public void _setRollbackOnly()
toString
public String toString()
- Overrides:
toString
in class Object
assertMockComplete
public void assertMockComplete()
- Validation
assertMockCommit
public void assertMockCommit()
- Validation
assertMockRollback
public void assertMockRollback()
- Validation
getMockState
public MockEntityTransaction.EntityTransactionState getMockState()
Copyright © 2009-2010 Smokestack. All Rights Reserved.