org.castor.ddlgen
Class GeneratorRegistry

java.lang.Object
  extended by org.castor.ddlgen.GeneratorRegistry

public final class GeneratorRegistry
extends java.lang.Object

Registry for Generator implementations obtained from the configuration.

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

Constructor Summary
GeneratorRegistry(DDLGenConfiguration config)
          Construct an instance of each generator specified in given configuration.
 
Method Summary
 java.util.Collection getEngineNames()
          Returns a collection of the names of current configured database engines.
 Generator getGenerator(java.lang.String engine)
          Returns generator with given engine name or null if there is no such generator.
 java.util.Collection getGenerators()
          Returns a collection of the current configured generators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorRegistry

public GeneratorRegistry(DDLGenConfiguration config)
Construct an instance of each generator specified in given configuration.

Parameters:
config - The configuration.
Method Detail

getGenerator

public Generator getGenerator(java.lang.String engine)
                       throws GeneratorException
Returns generator with given engine name or null if there is no such generator.

Parameters:
engine - Name of database engine.
Returns:
Generator with given engine name.
Throws:
GeneratorException - If no generator for engine can be found.

getGenerators

public java.util.Collection getGenerators()
Returns a collection of the current configured generators.

Returns:
Collection of the current configured generators.

getEngineNames

public java.util.Collection getEngineNames()
Returns a collection of the names of current configured database engines.

Returns:
Names of the configured database engines.


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