com.github.smokestack.jpa
Class MockEntityTransaction

java.lang.Object
  extended by com.github.smokestack.jpa.MockEntityTransaction
All Implemented Interfaces:
EntityTransaction

public class MockEntityTransaction
extends Object
implements EntityTransaction

Author:
gliptak

Nested Class Summary
static class MockEntityTransaction.EntityTransactionState
           
 
Field Summary
protected  boolean isRollbackOnly
           
protected  MockEntityTransaction.EntityTransactionState mockState
           
 
Constructor Summary
MockEntityTransaction()
           
 
Method Summary
 void _begin()
           
 void _commit()
           
 boolean _getRollbackOnly()
           
 boolean _isActive()
           
 void _rollback()
           
 void _setRollbackOnly()
           
 void assertMockCommit()
          Validation
 void assertMockComplete()
          Validation
 void assertMockRollback()
          Validation
 void begin()
           
 void commit()
           
 MockEntityTransaction.EntityTransactionState getMockState()
           
 boolean getRollbackOnly()
           
 boolean isActive()
           
 void rollback()
           
 void setRollbackOnly()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mockState

protected MockEntityTransaction.EntityTransactionState mockState

isRollbackOnly

protected boolean isRollbackOnly
Constructor Detail

MockEntityTransaction

public MockEntityTransaction()
Method Detail

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.