Package org.castor.ddlgen

This package contains functional classes, exceptions and Main class for DDL generator.

See:
          Description

Interface Summary
Generator Generator is the interface for various generators.
KeyGeneratorFactory Interface to be implemented by all key generator factories.
SchemaFactory The SchemaFactory handles the creation for various schema objects.
TypeMapper Interface associates JDBC type to TypeInfo.
 

Class Summary
AbstractGenerator 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 AbstractTypeMapper is the base class for mapping JDBC supported type and RDBMS data type.
    Configuration Handle the configuration for DDL generator including load configuration files, manage configuration values.
    DDLGenConfiguration Handle the configuration for DDL generator.
    DDLWriter 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.
  • GeneratorFactory This class handles the creation for various databse generators.
    GeneratorRegistry Registry for Generator implementations obtained from the configuration.
    KeyGeneratorRegistry Registry for key generator factory implementations obtained from the configuration.
    Main Main Program.
    MappingHelper This class handles all common tasks for manipulating Mapping document.
     

    Exception Summary
    GeneratorException GeneratorException, base class for all DDL generator exception.
    KeyNotFoundException Configuration Key does not find exception.
    TypeNotFoundException Type not found exception.
    WrongFormatException Wrong format exception.
     

    Package org.castor.ddlgen Description

    This package contains functional classes, exceptions and Main class for DDL generator.

    Author:
    Le Duc Bao
    Author:
    Ralf Joachim



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