org.castor.ddlgen |
Castor DDL Generator package
This package contains functional classes, exceptions and Main class for
DDL generator.
- Author:
- Le Duc Bao
- Author:
- Ralf Joachim
|
Java Source File Name | Type | Comment |
AbstractGenerator.java | Class | AbstractGenerator is the base class for various DDL generator of specific DB and
handles following tasks:
Extract information from Mapping to Schema
Loop through the schema and provide a skeleton for DDL creation
AbstractGenerator will automatically extract necessary information for DDL
creation. |
AbstractTypeMapper.java | Class | AbstractTypeMapper is the base class for mapping JDBC supported type and
RDBMS data type.
The initialize(Configuration) is used to defined the mapping table in which
the configuration is handled parameters for TypeInfo. |
Configuration.java | Class | Handle the configuration for DDL generator including load configuration files,
manage configuration values. |
DDLGenConfiguration.java | Class | Handle the configuration for DDL generator. |
DDLWriter.java | Class | Replace PrintStream and StringBuffer by a Writer implementation
We have various properties to configure output that are in-depended of the schema object:
org.castor.ddlgen.CharFormat=SENSITIVE, UPPER and LOWER
org.castor.ddlgen.Newline=\n
org.castor.ddlgen.Indention=\t
These properties are accessed at various places all around ddlgen at the moment.The idea
is that these properties are set only once at the new Writer and do not need to be
accessed elsewhere. |
Generator.java | Interface | Generator is the interface for various generators. |
GeneratorException.java | Class | GeneratorException, base class for all DDL generator exception. |
GeneratorFactory.java | Class | This class handles the creation for various databse generators. |
GeneratorFactoryTest.java | Class | |
GeneratorRegistry.java | Class | Registry for Generator implementations obtained from the configuration. |
KeyGeneratorFactory.java | Interface | Interface to be implemented by all key generator factories. |
KeyGeneratorRegistry.java | Class | Registry for key generator factory implementations obtained from the configuration. |
KeyNotFoundException.java | Class | Configuration Key does not find exception. |
Main.java | Class | Main Program. |
MappingHelper.java | Class | This class handles all common tasks for manipulating Mapping document. |
SchemaFactory.java | Interface | The SchemaFactory handles the creation for various schema objects. |
TestAll.java | Class | |
TypeMapper.java | Interface | Interface associates JDBC type to TypeInfo. |
TypeNotFoundException.java | Class | Type not found exception. |
WrongFormatException.java | Class | Wrong format exception. |