|
||||||||||
| 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
public class 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 void initialize(DBMonsterContext ctx)
throws Exception
initialize in interface Initializablectx - context
Exception - if generator contains errors.public Object generate()
generate in interface DataGeneratorpublic String getStartDate()
public void setStartDate(String start)
throws Exception
start - start date
Exception - on errorspublic String getEndDate()
public void setEndDate(String end)
throws Exception
end - end date
Exception - on errorspublic String getReturnedType()
public void setReturnedType(String type)
type - typepublic void reset()
reset in interface DataGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||