net.java.ao.test
Class ActiveObjectsIntegrationTest
java.lang.Object
net.java.ao.test.ActiveObjectsIntegrationTest
public abstract class ActiveObjectsIntegrationTest
- extends Object
|
Method Summary |
protected
|
checkSqlExecuted(Callable<T> callable)
|
protected
|
checkSqlExecutedWhenSaving(E entity)
|
protected
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityManager
protected EntityManager entityManager
ActiveObjectsIntegrationTest
public ActiveObjectsIntegrationTest()
checkSqlExecuted
protected final <T> T checkSqlExecuted(Callable<T> callable)
throws Exception
- Throws:
Exception
checkSqlNotExecuted
protected final <T> T checkSqlNotExecuted(Callable<T> callable)
throws Exception
- Throws:
Exception
checkSqlExecutedWhenSaving
protected final <E extends RawEntity<?>> E checkSqlExecutedWhenSaving(E entity)
throws Exception
- Throws:
Exception
executeUpdate
protected final void executeUpdate(String sql,
DbUtils.UpdateCallback callback)
throws Exception
- Throws:
Exception
executeStatement
protected final void executeStatement(String sql,
DbUtils.StatementCallback callback)
throws Exception
- Throws:
Exception
getTableName
protected final String getTableName(Class<? extends RawEntity<?>> entityType)
getTableName
protected final String getTableName(Class<? extends RawEntity<?>> entityType,
boolean escape)
- 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
protected final String getFieldName(Class<? extends RawEntity<?>> entityType,
String methodName)
getPolyFieldName
protected final String getPolyFieldName(Class<? extends RawEntity<?>> entityType,
String methodName)
escapeFieldName
protected final String escapeFieldName(Class<? extends RawEntity<?>> entityType,
String methodName)
escapePolyFieldName
protected final String escapePolyFieldName(Class<? extends RawEntity<?>> entityType,
String methodName)
escapeKeyword
protected final String escapeKeyword(String keyword)
findField
protected final DDLField findField(DDLTable table,
String name)
findField
protected final DDLField findField(DDLTable table,
Class<? extends RawEntity<?>> entityClass,
String methodName)
Copyright © 2007-2014. All Rights Reserved.