|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.creators.EntityInstanceCreator<T>
T
- -
the type of the class to createpublic class EntityInstanceCreator<T>
This class creates instances of different classes with random data, like entity beans, inner classes etc..
Constructor Summary | |
---|---|
EntityInstanceCreator(javax.persistence.EntityManager em,
Introspector<T> intro,
java.lang.Class<T> toCreate,
java.util.List<Generator<?>> generators)
Default constructor. |
Method Summary | |
---|---|
void |
cleanup()
This method should be called every time before an entity creation task > this method tells every generator to call his cleanup method (annotation). |
T |
createInstance()
Creates a instance of the class (filled with random data). |
void |
prepare()
This method should be called every time before an entity creation task > this method tells every generator to call his prepare method(annotation). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityInstanceCreator(javax.persistence.EntityManager em, Introspector<T> intro, java.lang.Class<T> toCreate, java.util.List<Generator<?>> generators)
em
- -
the current entity manager.intro
- -
different types of introspectorstoCreate
- -
the class to creategenerators
- -
the generator listMethod Detail |
---|
public void prepare()
public void cleanup()
public T createInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |