SchemaObject
HighLowKeyGenerator
, IdentityKeyGenerator
, MaxKeyGenerator
, SequenceKeyGenerator
, UUIDKeyGenerator
public abstract class KeyGenerator extends AbstractSchemaObject
HASHFACTOR
Modifier | Constructor | Description |
---|---|---|
protected |
KeyGenerator(java.lang.String name,
java.lang.String alias) |
Construct key generator with given name and alias.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object other) |
|
java.lang.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(java.lang.String alias) |
Set alias of the key generator.
|
void |
setTable(Table table) |
Set table the key generator creates keys for.
|
equals, getConfiguration, getName, setConfiguration, setName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
toCreateDDL, toDropDDL
protected KeyGenerator(java.lang.String name, java.lang.String alias)
name
- Name of the key generator algorithm.alias
- Alias of the key generator.public final void setAlias(java.lang.String alias)
alias
- Alias of the key generator.public final java.lang.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(java.lang.Object other)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com