|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.ao.test.DbUtils
public final class DbUtils
| Nested Class Summary | |
|---|---|
static interface |
DbUtils.StatementCallback
|
static class |
DbUtils.UpdateCallback
|
| Constructor Summary | |
|---|---|
DbUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
checkSqlExecuted(EntityManager em,
Callable<T> callable)
|
|
static
|
checkSqlExecutedWhenSaving(EntityManager em,
E entity)
|
|
static
|
checkSqlNotExecuted(EntityManager em,
Callable<T> callable)
|
|
static void |
executeStatement(EntityManager em,
String sql,
DbUtils.StatementCallback callback)
|
|
static void |
executeUpdate(EntityManager em,
String sql,
DbUtils.UpdateCallback callback)
|
|
static boolean |
isOracle(EntityManager em)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbUtils()
| Method Detail |
|---|
public static boolean isOracle(EntityManager em)
public static <T> T checkSqlExecuted(EntityManager em,
Callable<T> callable)
throws Exception
Exception
public static <T> T checkSqlNotExecuted(EntityManager em,
Callable<T> callable)
throws Exception
Exception
public static <E extends RawEntity<?>> E checkSqlExecutedWhenSaving(EntityManager em,
E entity)
throws Exception
Exception
public static void executeUpdate(EntityManager em,
String sql,
DbUtils.UpdateCallback callback)
throws Exception
Exception
public static void executeStatement(EntityManager em,
String sql,
DbUtils.StatementCallback callback)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||