SchemaObject
public final class HighLowKeyGenerator extends KeyGenerator
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ALGORITHM_NAME |
Name of key generator algorithm.
|
HASHFACTOR
Constructor | Description |
---|---|
HighLowKeyGenerator(KeyGeneratorDef definition) |
Constructor for HIGH-LOW key generator specified by given defintion.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getGrabSize() |
Get number of new keys the key generator should grab from the sequence table at a
time.
|
java.lang.String |
getKeyColumn() |
Get name of the column which contains table names.
|
java.lang.String |
getTableName() |
Get name of the special sequence table.
|
java.lang.String |
getValueColumn() |
Get name of the column which is used to reserve primary key values.
|
boolean |
isGlobal() |
Shell globally unique keys be generated?
|
boolean |
isSameConnection() |
Shell the same Connection be used for writing to the sequence table?
|
void |
toCreateDDL(DDLWriter writer) |
Build create script for the schema object.
|
void |
toDropDDL(DDLWriter writer) |
Build drop script for the schema object.
|
equals, getConfiguration, getName, setConfiguration, setName
public static final java.lang.String ALGORITHM_NAME
public HighLowKeyGenerator(KeyGeneratorDef definition) throws GeneratorException
definition
- Key generator definition.GeneratorException
- If grab size parameter can't be parsed as integer.public java.lang.String getTableName()
public java.lang.String getKeyColumn()
public java.lang.String getValueColumn()
public int getGrabSize()
public boolean isSameConnection()
true
it uses the same connection t write to the sequence
table.public boolean isGlobal()
true
globally unique keys are generated.public void toCreateDDL(DDLWriter writer)
writer
- DDLWriter to write schema objects to.public void toDropDDL(DDLWriter writer)
writer
- DDLWriter to write schema objects to.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com