Package org.castor.ddlgen
Class GeneratorRegistry
java.lang.Object
org.castor.ddlgen.GeneratorRegistry
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
ConstructorsConstructorDescriptionGeneratorRegistry
(DDLGenConfiguration config) Construct an instance of each generator specified in given configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of the names of current configured database engines.getGenerator
(String engine) Returns generator with given engine name or null if there is no such generator.Returns a collection of the current configured generators.
-
Constructor Details
-
GeneratorRegistry
Construct an instance of each generator specified in given configuration.- Parameters:
config
- The configuration.
-
-
Method Details
-
getGenerator
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
Returns a collection of the current configured generators.- Returns:
- Collection of the current configured generators.
-
getEngineNames
Returns a collection of the names of current configured database engines.- Returns:
- Names of the configured database engines.
-