|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bm.datagen.relation.SingleBeanGenerator<T>
T - -
the type of the entity bean to creatpublic class SingleBeanGenerator<T>
Generates 1 entity bean (using own configurator settings) to
enable ben creation for beans wich are using 1:1 or N:1 relations.
| Constructor Summary | |
|---|---|
SingleBeanGenerator(java.lang.Class<T> beanToCreate)
Default constructor. |
|
SingleBeanGenerator(java.lang.Class<T> beanToCreate,
Generator<?>[] additionalGenerators)
Contructor using additional generator (for this generator). |
|
| Method Summary | |
|---|---|
java.lang.Class<T> |
getUsedBeans()
Returns the releated bean: The Type of the bean wich is generated by this generator. |
T |
getValue()
Returns the next entity bean of type T. |
void |
preCreate()
Gets called before every jUnitTest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleBeanGenerator(java.lang.Class<T> beanToCreate,
Generator<?>[] additionalGenerators)
beanToCreate - -
the bean to createadditionalGenerators - -
if the beand creation sould have some special rules (creators)public SingleBeanGenerator(java.lang.Class<T> beanToCreate)
beanToCreate - -
the bean to create| Method Detail |
|---|
public void preCreate()
public T getValue()
getValue in interface Generator<T>Generator.getValue()public java.lang.Class<T> getUsedBeans()
getUsedBeans in interface EntityRelation<T>EntityRelation.getUsedBeans()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||