|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bm.datagen.DataGenerator
public class DataGenerator
This is the base class for generating data. All custom generators are registered here dynamically
| Constructor Summary | |
|---|---|
DataGenerator(javax.persistence.EntityManager em)
|
|
| 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). |
|
|
getNextValue(Property property,
Introspector<T> introspector,
java.lang.Object instance)
Return the value form the generator. |
|
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). |
|
void |
registerGen(Generator<?> toRegister)
Register one generator to the set of generators. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataGenerator(javax.persistence.EntityManager em)
| Method Detail |
|---|
public void registerGen(Generator<?> toRegister)
toRegister - -
the generator to registerpublic void prepare()
public void cleanup()
public <T> java.lang.Object getNextValue(Property property,
Introspector<T> introspector,
java.lang.Object instance)
T - -
the type of the beanem - the entity managerproperty - -
the field/property for what the value should be generatedintrospector - -
the current introspector (belonging to the class with the
field)instance - -
the current instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||