|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.kernelpanic.dbmonster.generator.BasicDataGenerator
pl.kernelpanic.dbmonster.generator.DateTimeGenerator
The generator which prouces dates.
Field Summary | |
static int |
DATE
Returned type should be date. |
static SimpleDateFormat |
DATE_FORMAT
Date format. |
static int |
TIME
Returned type should be time. |
static int |
TIMESTAMP
Returned type should be timestamp. |
Fields inherited from class pl.kernelpanic.dbmonster.generator.BasicDataGenerator |
column, nulls |
Constructor Summary | |
DateTimeGenerator()
|
Method Summary | |
Object |
generate()
Generates random date or time. |
String |
getEndDate()
Returns the end date. |
String |
getReturnedType()
Returns type. |
String |
getStartDate()
Returns start Date. |
void |
initialize(DBMonsterContext ctx)
Initializes the generator. |
void |
reset()
Resets the generator. |
void |
setEndDate(String end)
Sets the end date. |
void |
setReturnedType(String type)
Sets the returned type. |
void |
setStartDate(String start)
Sets the start date. |
Methods inherited from class pl.kernelpanic.dbmonster.generator.BasicDataGenerator |
getColumn, getNulls, setColumn, setNulls |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DATE
public static final int TIME
public static final int TIMESTAMP
public static final SimpleDateFormat DATE_FORMAT
Constructor Detail |
public DateTimeGenerator()
Method Detail |
public final void initialize(DBMonsterContext ctx) throws Exception
initialize
in interface Initializable
ctx
- context
Exception
- if generator contains errors.public final Object generate()
generate
in interface DataGenerator
public final String getStartDate()
public final void setStartDate(String start) throws Exception
start
- start date
Exception
- on errorspublic final String getEndDate()
public final void setEndDate(String end) throws Exception
end
- end date
Exception
- on errorspublic final String getReturnedType()
public final void setReturnedType(String type)
type
- typepublic final void reset()
reset
in interface DataGenerator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |