org.castor.ddlgen

Class GeneratorRegistry


public final class GeneratorRegistry
extends java.lang.Object

Registry for Generator implementations obtained from the configuration.
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Authors:
Le Duc Bao
Ralf Joachim
Since:
1.1

Constructor Summary

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

Method Summary

Collection
getEngineNames()
Returns a collection of the names of current configured database engines.
Generator
getGenerator(String engine)
Returns generator with given engine name or null if there is no such generator.
Collection
getGenerators()
Returns a collection of the current configured generators.

Constructor Details

GeneratorRegistry

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

Method Details

getEngineNames

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

getGenerator

public Generator getGenerator(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 Collection getGenerators()
Returns a collection of the current configured generators.
Returns:
Collection of the current configured generators.

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