|
||||||||||
| 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.BinaryGenerator
public class BinaryGenerator
| Field Summary |
|---|
| Fields inherited from class pl.kernelpanic.dbmonster.generator.BasicDataGenerator |
|---|
column, nulls |
| Constructor Summary | |
|---|---|
BinaryGenerator()
|
|
| Method Summary | |
|---|---|
Object |
generate()
Generates byte[] from the next file in our list of configured files. |
int |
getMaxLength()
Returns the maximal length of the string. |
void |
initialize(DBMonsterContext ctx)
Initializes a class with DBMonsterContext. |
void |
reset()
Resets the generator. |
void |
setFile(String value)
Sets a filename containing content to be used as a field value in the database. |
void |
setMaxLength(int length)
Sets the maximal length of the string. |
| 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 |
| Constructor Detail |
|---|
public BinaryGenerator()
| Method Detail |
|---|
public void initialize(DBMonsterContext ctx)
throws Exception
DBMonsterContext.
initialize in interface Initializablectx - context
Exception - if initialization fails
public Object generate()
throws Exception
generate in interface DataGeneratorException - if generation failspublic void reset()
DataGenerator
reset in interface DataGeneratorpublic void setFile(String value)
value - the absolute path to a file that will be read in and stored
in a table column.public int getMaxLength()
public void setMaxLength(int length)
length - maximal length
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||