| java.lang.Object com.bm.creators.EntityBeanCreator
EntityBeanCreator | public class EntityBeanCreator (Code) | | This class creates entity beans with random data.
author: Daniel Wiese< Parameters: T - > -the type of the entity beans which will be created since: 07.10.2005 |
Method Summary | |
public 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). | public T | createBeanInstance() Creates a instance of the entyty bean (filled with random data) without
any persistence operations. | public 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). |
EntityBeanCreator | public EntityBeanCreator(Class<T> toCreate)(Code) | | Deafult constructor.
Parameters: toCreate - -the class to create |
EntityBeanCreator | public EntityBeanCreator(EntityBeanIntrospector<T> intro, Class<T> toCreate)(Code) | | Deafult constructor.
Parameters: intro - -a isntance of bean introspection Parameters: toCreate - -the class to create |
EntityBeanCreator | public EntityBeanCreator(EntityBeanIntrospector<T> intro, Class<T> toCreate, List<Generator> additionalGenerators)(Code) | | Constructor with special generator list.
Parameters: intro - -a isntance of bean introspection Parameters: toCreate - -the class to create Parameters: additionalGenerators - -additional generators |
cleanup | public void cleanup()(Code) | | This method should be called every time before an entity creation task >
this method tells every generator to call his clenup method (annotation).
|
createBeanInstance | public T createBeanInstance()(Code) | | Creates a instance of the entyty bean (filled with random data) without
any persistence operations.
-a random instance of the entity bean |
prepare | public void prepare()(Code) | | This method should be called every time before an entity creation task >
this method tells every generator to call his prepare method(annotation).
|
|
|