public abstract class ActiveObjectsIntegrationTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected EntityManager |
entityManager |
| Constructor and Description |
|---|
ActiveObjectsIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
checkSqlExecuted(Callable<T> callable) |
protected <E extends RawEntity<?>> |
checkSqlExecutedWhenSaving(E entity) |
protected <T> T |
checkSqlNotExecuted(Callable<T> callable) |
protected String |
escapeFieldName(Class<? extends RawEntity<?>> entityType,
String methodName) |
protected String |
escapeKeyword(String keyword) |
protected String |
escapePolyFieldName(Class<? extends RawEntity<?>> entityType,
String methodName) |
protected void |
executeStatement(String sql,
DbUtils.StatementCallback callback) |
protected void |
executeUpdate(String sql,
DbUtils.UpdateCallback callback) |
protected DDLField |
findField(DDLTable table,
Class<? extends RawEntity<?>> entityClass,
String methodName) |
protected DDLField |
findField(DDLTable table,
String name) |
protected String |
getFieldName(Class<? extends RawEntity<?>> entityType,
String methodName) |
protected String |
getPolyFieldName(Class<? extends RawEntity<?>> entityType,
String methodName) |
protected String |
getTableName(Class<? extends RawEntity<?>> entityType) |
protected String |
getTableName(Class<? extends RawEntity<?>> entityType,
boolean escape)
Get the table name of the given class entity
|
protected EntityManager entityManager
protected final <T> T checkSqlExecuted(Callable<T> callable) throws Exception
Exceptionprotected final <T> T checkSqlNotExecuted(Callable<T> callable) throws Exception
Exceptionprotected final <E extends RawEntity<?>> E checkSqlExecutedWhenSaving(E entity) throws Exception
Exceptionprotected final void executeUpdate(String sql, DbUtils.UpdateCallback callback) throws Exception
Exceptionprotected final void executeStatement(String sql, DbUtils.StatementCallback callback) throws Exception
Exceptionprotected final String getTableName(Class<? extends RawEntity<?>> entityType, boolean escape)
entityType - the class of the entityescape - whether or not to escape the table nameprotected final String getFieldName(Class<? extends RawEntity<?>> entityType, String methodName)
protected final String getPolyFieldName(Class<? extends RawEntity<?>> entityType, String methodName)
protected final String escapeFieldName(Class<? extends RawEntity<?>> entityType, String methodName)
protected final String escapePolyFieldName(Class<? extends RawEntity<?>> entityType, String methodName)
Copyright © 2007-2015. All Rights Reserved.