net.java.ao.test
Class ActiveObjectsIntegrationTest

java.lang.Object
  extended by net.java.ao.test.ActiveObjectsIntegrationTest

public abstract class ActiveObjectsIntegrationTest
extends Object


Field Summary
protected  EntityManager entityManager
           
 
Constructor Summary
ActiveObjectsIntegrationTest()
           
 
Method Summary
protected
<T> T
checkSqlExecuted(Callable<T> callable)
           
protected
<E extends RawEntity<?>>
E
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityManager

protected EntityManager entityManager
Constructor Detail

ActiveObjectsIntegrationTest

public ActiveObjectsIntegrationTest()
Method Detail

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 entity
escape - 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-2011. All Rights Reserved.