| org.castor.ddlgen.schemaobject.KeyGenerator org.castor.ddlgen.keygenerator.SequenceKeyGenerator
SequenceKeyGenerator | final public class SequenceKeyGenerator extends KeyGenerator (Code) | | SEQUENCE key generator can be used only with Oracle, PostgreSQL, Interbase and
SAP DB. It generates keys using sequences.
author: Le Duc Bao author: Ralf Joachim version: $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $ since: 1.1 |
Method Summary | |
public int | getIncrement() Get increment for the sequence. | public String | getSequence() Get name of the sequence. | public boolean | isReturning() Get returning mode for the sequence. | public boolean | isTrigger() Shell a trigger be used to generates keys?
true if keys are to be generated by a trigger,false otherwise. | public void | toCreateDDL(DDLWriter writer) Delegate generation of create script to factory. | public void | toDropDDL(DDLWriter writer) Delegate generation of drop script to factory. |
ALGORITHM_NAME | final public static String ALGORITHM_NAME(Code) | | Name of key generator algorithm.
|
SequenceKeyGenerator | protected SequenceKeyGenerator(SequenceKeyGeneratorFactory factory)(Code) | | Constructor for default SEQUENCE key generator.
Parameters: factory - The key generator factory that has created this key generator andwill also be responsible to generate the DDL for the sequence. |
SequenceKeyGenerator | protected SequenceKeyGenerator(SequenceKeyGeneratorFactory factory, KeyGeneratorDef definition) throws GeneratorException(Code) | | Constructor for SEQUENCE key generator specified by given defintion.
Parameters: factory - The key generator factory that has created this key generator andwill also be responsible to generate the DDL for the sequence. Parameters: definition - Key generator definition. throws: GeneratorException - If increment parameter can't be parsed as integer. |
getIncrement | public int getIncrement()(Code) | | Get increment for the sequence.
Increment for the sequence. |
getSequence | public String getSequence()(Code) | | Get name of the sequence.
Name of the sequence. |
isReturning | public boolean isReturning()(Code) | | Get returning mode for the sequence.
Returning mode for the sequence. |
isTrigger | public boolean isTrigger()(Code) | | Shell a trigger be used to generates keys?
true if keys are to be generated by a trigger,false otherwise. |
toCreateDDL | public void toCreateDDL(DDLWriter writer)(Code) | | Delegate generation of create script to factory.
|
toDropDDL | public void toDropDDL(DDLWriter writer)(Code) | | Delegate generation of drop script to factory.
|
|
|