|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.kernelpanic.dbmonster.schema.Column
public class 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 String getName()
public void setName(String s)
s - the name of the column.public DataGenerator getGenerator()
public void setGenerator(DataGenerator gen)
gen - data generator
public void initialize(DBMonsterContext ctx)
throws Exception
ctx - dbmonster context.
Exception - if initialization fails
public void generate()
throws Exception
Exception - if this column could not be generatedpublic void reset()
public boolean getDatabaseDefault()
public void setDatabaseDefault(boolean isDatabaseDefault)
isDatabaseDefault - true if DBMonster should
use database default value.public void setValue(Object o)
o - the valuepublic Object getValue()
public void setTable(Table t)
t - tablepublic Table getTable()
public int compareTo(Object o)
compareTo in interface ComparableComparable.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 | |||||||||