|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.creators.EntityBeanCreator<T>
T
- -
the type of the entity beans which will be createdpublic class EntityBeanCreator<T>
This class creates entity beans with random data.
Constructor Summary | |
---|---|
EntityBeanCreator(javax.persistence.EntityManager em,
java.lang.Class<T> toCreate)
Deafult constructor. |
|
EntityBeanCreator(javax.persistence.EntityManager em,
EntityBeanIntrospector<T> intro,
java.lang.Class<T> toCreate)
Deafult constructor. |
|
EntityBeanCreator(javax.persistence.EntityManager em,
EntityBeanIntrospector<T> intro,
java.lang.Class<T> toCreate,
java.util.List<Generator<?>> additionalGenerators)
Constructor with special generator list. |
Method Summary | |
---|---|
void |
cleanup()
This method should be called every time before an entity creation task > this method tells every generator to call his clenup method (annotation). |
T |
createBeanInstance()
Creates a instance of the entyty bean (filled with random data) without any persistence operations. |
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 EntityBeanCreator(javax.persistence.EntityManager em, java.lang.Class<T> toCreate)
toCreate
- -
the class to createpublic EntityBeanCreator(javax.persistence.EntityManager em, EntityBeanIntrospector<T> intro, java.lang.Class<T> toCreate)
em
- the current entity manager.intro
- -
a isntance of bean introspectiontoCreate
- -
the class to createpublic EntityBeanCreator(javax.persistence.EntityManager em, EntityBeanIntrospector<T> intro, java.lang.Class<T> toCreate, java.util.List<Generator<?>> additionalGenerators)
em
- the current entity manager.intro
- -
a isntance of bean introspectiontoCreate
- -
the class to createadditionalGenerators
- -
additional generatorsMethod Detail |
---|
public void prepare()
public void cleanup()
public T createBeanInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |