org.castor.ddlgen.keygenerator
Class HighLowKeyGenerator
- SchemaObject
public final class HighLowKeyGenerator
HIGH-LOW key generator will be handled by Castor so no DDL needs to be created. It
only requires a table to lookup the next values to be used.
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
ALGORITHM_NAME
public static final String ALGORITHM_NAME
Name of key generator algorithm.
HighLowKeyGenerator
public HighLowKeyGenerator(KeyGeneratorDef definition)
throws GeneratorException
Constructor for HIGH-LOW key generator specified by given defintion.
definition
- Key generator definition.
getGrabSize
public int getGrabSize()
Get number of new keys the key generator should grab from the sequence table at a
time.
- Number of new keys the key generator should grab from the sequence table
at a time.
getKeyColumn
public String getKeyColumn()
Get name of the column which contains table names.
- Name of the column which contains table names.
getTableName
public String getTableName()
Get name of the special sequence table.
- Name of the special sequence table.
getValueColumn
public String getValueColumn()
Get name of the column which is used to reserve primary key values.
- Name of the column which is used to reserve primary key values.
isGlobal
public boolean isGlobal()
Shell globally unique keys be generated?
- If
true
globally unique keys are generated.
isSameConnection
public boolean isSameConnection()
Shell the same Connection be used for writing to the sequence table?
- If
true
it uses the same connection t write to the sequence
table.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com