|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.kernelpanic.dbmonster.schema.Column
The column.
Constructor Summary | |
Column()
|
Method Summary | |
int |
compareTo(Object o)
|
void |
generate()
Generates this column. |
boolean |
getDatabaseDefault()
Returns true if this column should not be included in INSERT query allowing the database to put the default value for this column. |
DataGenerator |
getGenerator()
Returns a data generator. |
String |
getName()
Returns the name of the column. |
Table |
getTable()
Returns a table. |
int |
getTargetType()
|
Object |
getValue()
Returns the value. |
void |
initialize(DBMonsterContext ctx)
Initializes the column. |
void |
reset()
Resets the column. |
void |
setDatabaseDefault(boolean isDatabaseDefault)
Sets database default parameter |
void |
setGenerator(DataGenerator gen)
Sets the data generator. |
void |
setName(String s)
Sets the name of the column. |
void |
setTable(Table t)
Sets the table. |
void |
setTargetType(int targetType)
|
void |
setValue(Object o)
Sets the value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Column()
Method Detail |
public final String getName()
public final void setName(String s)
s
- the name of the column.public final DataGenerator getGenerator()
public final void setGenerator(DataGenerator gen)
gen
- data generatorpublic final void initialize(DBMonsterContext ctx) throws Exception
ctx
- dbmonster context.
Exception
- if initialization failspublic final void generate() throws Exception
Exception
- if this column could not be generatedpublic final void reset()
public final boolean getDatabaseDefault()
public final void setDatabaseDefault(boolean isDatabaseDefault)
isDatabaseDefault
- true
if DBMonster should
use database default value.public final void setValue(Object o)
o
- the valuepublic final Object getValue()
public final void setTable(Table t)
t
- tablepublic final Table getTable()
public final int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)
public int getTargetType()
public void setTargetType(int targetType)
targetType
- The targetType to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |