org.castor.ddlgen.keygenerator
Class MaxKeyGenerator

java.lang.Object
  extended byorg.castor.ddlgen.schemaobject.AbstractSchemaObject
      extended byorg.castor.ddlgen.schemaobject.KeyGenerator
          extended byorg.castor.ddlgen.keygenerator.MaxKeyGenerator
All Implemented Interfaces:
SchemaObject

public final class MaxKeyGenerator
extends KeyGenerator

MAX key generator will be handled by Castor so no DDL needs to be created.

Since:
1.1
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Le Duc Bao, Ralf Joachim

Field Summary
static java.lang.String ALGORITHM_NAME
          Name of key generator algorithm.
 
Fields inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject
HASHFACTOR
 
Constructor Summary
MaxKeyGenerator()
          Constructor for default MAX key generator.
MaxKeyGenerator(KeyGeneratorDef definition)
          Constructor for MAX key generator specified by given defintion.
 
Method Summary
 java.lang.String toCreateDDL()
          Build create script for the schema object.
 java.lang.String toDropDDL()
          Build drop script for the schema object.
 
Methods inherited from class org.castor.ddlgen.schemaobject.KeyGenerator
equals, getAlias, getTable, hashCode, merge, setAlias, setTable
 
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
 

Field Detail

ALGORITHM_NAME

public static final java.lang.String ALGORITHM_NAME
Name of key generator algorithm.

See Also:
Constant Field Values
Constructor Detail

MaxKeyGenerator

public MaxKeyGenerator()
Constructor for default MAX key generator.


MaxKeyGenerator

public MaxKeyGenerator(KeyGeneratorDef definition)
Constructor for MAX key generator specified by given defintion.

Parameters:
definition - Key generator definition.
Method Detail

toCreateDDL

public java.lang.String toCreateDDL()
Build create script for the schema object.

Returns:
Create script for the schema object.

toDropDDL

public java.lang.String toDropDDL()
Build drop script for the schema object.

Returns:
Drop script for the schema object.


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com