org.castor.ddlgen.keygenerator
Class UUIDKeyGenerator

java.lang.Object
  extended by org.castor.ddlgen.schemaobject.AbstractSchemaObject
      extended by org.castor.ddlgen.schemaobject.KeyGenerator
          extended by org.castor.ddlgen.keygenerator.UUIDKeyGenerator
All Implemented Interfaces:
SchemaObject

public final class UUIDKeyGenerator
extends KeyGenerator

UUID 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
UUIDKeyGenerator()
          Constructor for default UUID key generator.
UUIDKeyGenerator(org.exolab.castor.mapping.xml.KeyGeneratorDef definition)
          Constructor for UUID key generator specified by given defintion.
 
Method Summary
 void toCreateDDL(DDLWriter writer)
          Build create script for the schema object.
 void toDropDDL(DDLWriter writer)
          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

UUIDKeyGenerator

public UUIDKeyGenerator()
Constructor for default UUID key generator.


UUIDKeyGenerator

public UUIDKeyGenerator(org.exolab.castor.mapping.xml.KeyGeneratorDef definition)
Constructor for UUID key generator specified by given defintion.

Parameters:
definition - Key generator definition.
Method Detail

toCreateDDL

public void toCreateDDL(DDLWriter writer)
Build create script for the schema object.

Parameters:
writer - DDLWriter to write schema objects to.

toDropDDL

public void toDropDDL(DDLWriter writer)
Build drop script for the schema object.

Parameters:
writer - DDLWriter to write schema objects to.


Copyright © 2011. All Rights Reserved.