Package net.java.ao.test
Class ActiveObjectsIntegrationTest
java.lang.Object
net.java.ao.test.ActiveObjectsIntegrationTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final <T> TcheckSqlExecuted(Callable<T> callable) protected final <E extends RawEntity<?>>
EcheckSqlExecutedWhenSaving(E entity) protected final <T> TcheckSqlNotExecuted(Callable<T> callable) protected final StringescapeFieldName(Class<? extends RawEntity<?>> entityType, String methodName) protected final StringescapeKeyword(String keyword) protected final StringescapePolyFieldName(Class<? extends RawEntity<?>> entityType, String methodName) protected final voidexecuteStatement(String sql, DbUtils.StatementCallback callback) protected final voidexecuteUpdate(String sql, DbUtils.UpdateCallback callback) protected DDLIndexFieldprotected final DDLFieldprotected final DDLFieldprotected final StringgetFieldName(Class<? extends RawEntity<?>> entityType, String methodName) protected static ObjectgetFieldValue(Object target, String name) protected final StringgetPolyFieldName(Class<? extends RawEntity<?>> entityType, String methodName) protected SchemaConfigurationprotected final StringgetTableName(Class<? extends RawEntity<?>> entityType) protected final StringgetTableName(Class<? extends RawEntity<?>> entityType, boolean escape) Get the table name of the given class entityprotected Stringprotected void
-
Field Details
-
entityManager
-
-
Constructor Details
-
ActiveObjectsIntegrationTest
public ActiveObjectsIntegrationTest()
-
-
Method Details
-
checkSqlExecuted
- Throws:
Exception
-
checkSqlNotExecuted
- Throws:
Exception
-
checkSqlExecutedWhenSaving
- Throws:
Exception
-
executeUpdate
- Throws:
Exception
-
executeStatement
protected final void executeStatement(String sql, DbUtils.StatementCallback callback) throws Exception - Throws:
Exception
-
getTableName
-
getTableName
Get the table name of the given class entity- Parameters:
entityType- the class of the entityescape- whether or not to escape the table name- Returns:
- the table name
-
getFieldName
-
getPolyFieldName
-
escapeFieldName
-
escapePolyFieldName
-
escapeKeyword
-
findField
-
findField
-
field
-
indexName
-
getSchemaConfiguration
-
getFieldValue
-
with
- Throws:
Exception
-