public abstract class ActiveObjectsIntegrationTest extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
ActiveObjectsIntegrationTest.WithConnection |
| 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 DDLIndexField |
field(String name,
Class type,
Class<? extends RawEntity<?>> entity) |
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 static Object |
getFieldValue(Object target,
String name) |
protected String |
getPolyFieldName(Class<? extends RawEntity<?>> entityType,
String methodName) |
protected SchemaConfiguration |
getSchemaConfiguration() |
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 String |
indexName(String tableName,
String indexName) |
protected void |
with(ActiveObjectsIntegrationTest.WithConnection w) |
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)
protected final DDLField findField(DDLTable table, Class<? extends RawEntity<?>> entityClass, String methodName)
protected DDLIndexField field(String name, Class type, Class<? extends RawEntity<?>> entity)
protected SchemaConfiguration getSchemaConfiguration()
protected void with(ActiveObjectsIntegrationTest.WithConnection w) throws Exception
ExceptionCopyright © 2007-2016. All Rights Reserved.