|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.kernelpanic.dbmonster.schema.Key
The primary key.
Constructor Summary | |
Key()
|
Method Summary | |
List |
generate()
Generates the key. |
boolean |
getDatabaseDefault()
Returns true if this key should not be included in INSERT query allowing the database to put the default value for this column(s). |
KeyGenerator |
getGenerator()
Returns a generator. |
Table |
getTable()
Returns a table. |
void |
initialize(DBMonsterContext ctx)
Initializes the key. |
void |
setDatabaseDefault(boolean isDatabaseDefault)
Sets database default parameter |
void |
setGenerator(KeyGenerator gen)
Sets the generator. |
void |
setTable(Table t)
Sets the table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Key()
Method Detail |
public final KeyGenerator getGenerator()
public final void setGenerator(KeyGenerator gen)
gen
- generatorpublic final void initialize(DBMonsterContext ctx) throws Exception
ctx
- dbmonster context.
Exception
- if initialization failspublic final List generate() throws Exception
Exception
- if generation failspublic final void setTable(Table t)
t
- tablepublic final Table getTable()
public final boolean getDatabaseDefault()
public final void setDatabaseDefault(boolean isDatabaseDefault)
isDatabaseDefault
- true
if DBMonster should
use database default value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |