|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.utils.UndoScriptGenerator<T>
T
- -
the type of the entity beanpublic class UndoScriptGenerator<T>
This class generates a undo script for all DB oprations excuted in jUnit. tests
Constructor Summary | |
---|---|
UndoScriptGenerator(EntityBeanIntrospector<T> inspector)
Default constructor. |
Method Summary | |
---|---|
void |
deleteAllDataInAllUsedTables(javax.persistence.EntityManager em)
Deteltes all data in all used tables. |
java.util.List<java.lang.Object> |
getCreatedObjects()
Returns the createdObjects. |
java.util.List<java.lang.String> |
getOneDeleteAllStatement()
This method returns a delete all statement for the tables (bean types). |
java.util.List<java.lang.String> |
getSQLUndoStatements()
Returns a list of SQL undo statements. |
void |
protokollCreate(T toCreate)
This method protocoll a bean creation. |
java.lang.String |
toString()
The toString method- returns the undo-script. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UndoScriptGenerator(EntityBeanIntrospector<T> inspector)
inspector
- -
the inspectorMethod Detail |
---|
public java.util.List<java.lang.Object> getCreatedObjects()
public java.util.List<java.lang.String> getOneDeleteAllStatement()
public void deleteAllDataInAllUsedTables(javax.persistence.EntityManager em)
em
- the entity managerpublic java.util.List<java.lang.String> getSQLUndoStatements()
public void protokollCreate(T toCreate)
toCreate
- -
the ben wich sould be protocolled as createdpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |