|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.ddlgen.GeneratorRegistry
public final class GeneratorRegistry
Registry for Generator implementations obtained from the configuration.
Constructor Summary | |
---|---|
GeneratorRegistry(DDLGenConfiguration config)
Construct an instance of each generator specified in given configuration. |
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
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<Generator> |
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 |
---|
public GeneratorRegistry(DDLGenConfiguration config)
config
- The configuration.Method Detail |
---|
public Generator getGenerator(java.lang.String engine) throws GeneratorException
engine
- Name of database engine.
GeneratorException
- If no generator for engine can be found.public java.util.Collection<Generator> getGenerators()
public java.util.Collection<java.lang.String> getEngineNames()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |