|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.ddlgen.schemaobject.AbstractSchemaObject
org.castor.ddlgen.schemaobject.KeyGenerator
public abstract class KeyGenerator
Abstract base class for all key generators.
| Field Summary |
|---|
| Fields inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject |
|---|
HASHFACTOR |
| Constructor Summary | |
|---|---|
protected |
KeyGenerator(String name,
String alias)
Construct key generator with given name and alias. |
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
String |
getAlias()
Get alias of the key generator. |
Table |
getTable()
Get table the key generator creates keys for. |
int |
hashCode()
|
void |
merge(KeyGenerator keygen)
Check wether this key generator is compatible with the given one to allow merge of table definitions. |
void |
setAlias(String alias)
Set alias of the key generator. |
void |
setTable(Table table)
Set table the key generator creates keys for. |
| Methods inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject |
|---|
equals, getConfiguration, getName, setConfiguration, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.castor.ddlgen.schemaobject.SchemaObject |
|---|
toCreateDDL, toDropDDL |
| Constructor Detail |
|---|
protected KeyGenerator(String name,
String alias)
name - Name of the key generator algorithm.alias - Alias of the key generator.| Method Detail |
|---|
public final void setAlias(String alias)
alias - Alias of the key generator.public final String getAlias()
public final void setTable(Table table)
table - Table the key generator creates keys for.public final Table getTable()
public final void merge(KeyGenerator keygen)
keygen - Key generator to merge.public final boolean equals(Object other)
equals in class Objectpublic final int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||