|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.kernelpanic.dbmonster.schema.Key
public class 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 KeyGenerator getGenerator()
public void setGenerator(KeyGenerator gen)
gen - generator
public void initialize(DBMonsterContext ctx)
throws Exception
ctx - dbmonster context.
Exception - if initialization fails
public List generate()
throws Exception
Exception - if generation failspublic void setTable(Table t)
t - tablepublic Table getTable()
public boolean getDatabaseDefault()
public 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 | |||||||||