|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.tools.jpa.SimpleTransactionInterceptorTest.Helper
public static class SimpleTransactionInterceptorTest.Helper
| Constructor Summary | |
|---|---|
SimpleTransactionInterceptorTest.Helper()
|
|
| Method Summary | |
|---|---|
void |
checkExists(long... ids)
|
void |
checkExists(long id)
|
void |
checkNoEntityManager()
|
void |
checkNotExists(long id)
|
void |
insertAndFail()
Inserts a row and throws SimpleTransactionInterceptorTest.SimulatedException. |
long |
insertAndSucceed()
|
long |
invokeFailAndCommit()
Invokes insertAndFail() but catches the exception and finishes normally. |
long[] |
invokeInsert()
This tests a case when the entity manager was set to null after method return. |
long |
invokeOkButRollback()
Invokes insertAndFail() but catches the exception and finishes normally. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTransactionInterceptorTest.Helper()
| Method Detail |
|---|
public void insertAndFail()
SimpleTransactionInterceptorTest.SimulatedException.
public long invokeFailAndCommit()
insertAndFail() but catches the exception and finishes normally.
public long invokeOkButRollback()
insertAndFail() but catches the exception and finishes normally.
public long insertAndSucceed()
public long[] invokeInsert()
public void checkExists(long id)
public void checkExists(long... ids)
public void checkNotExists(long id)
public void checkNoEntityManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||