|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bm.datagen.relation.BeanCollectionGenerator<T>
T - -
the type of the generatorpublic class BeanCollectionGenerator<T>
Generates N entity beans (using own configurator settings) to enable bean creation for beans
which are using 1:M or N:M relations.
| Constructor Summary | |
|---|---|
BeanCollectionGenerator(java.lang.Class<T> beanToCreate,
Generator<?>[] additionalGenerators,
int beansToCreate)
Constructor using additional generator (for this generator). |
|
BeanCollectionGenerator(java.lang.Class<T> beanToCreate,
int beansToCreate)
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.Class<T> |
getUsedBeans()
Returns the releated bean: The Type of the bean which is generated by this generator. |
java.util.Collection<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 BeanCollectionGenerator(java.lang.Class<T> beanToCreate,
Generator<?>[] additionalGenerators,
int beansToCreate)
beanToCreate - -
the bean to createadditionalGenerators - -
if the bean creation should have some special rules (creators)beansToCreate - -
beans to create
public BeanCollectionGenerator(java.lang.Class<T> beanToCreate,
int beansToCreate)
beanToCreate - -
the bean to createbeansToCreate - -
bean to create| Method Detail |
|---|
public void preCreate()
public java.util.Collection<T> getValue()
getValue in interface Generator<java.util.Collection<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 | |||||||||