com.agimatec.sql.meta.script
Class DDLScriptSqlMetaFactory.CatalogBuilder

java.lang.Object
  extended by com.agimatec.sql.meta.script.DDLScriptSqlMetaFactory.CatalogBuilder
Direct Known Subclasses:
DDLScriptSqlMetaFactory.DezignCreateTableBuilder, ScriptTransformator.CreateIndexBuilder, ScriptTransformator.DropTableBuilder, ScriptTransformator.DropTriggerBuilder, ScriptTransformator.TableAlterColumnsBuilder
Enclosing class:
DDLScriptSqlMetaFactory

protected abstract class DDLScriptSqlMetaFactory.CatalogBuilder
extends Object


Constructor Summary
protected DDLScriptSqlMetaFactory.CatalogBuilder()
           
 
Method Summary
protected  ColumnDescription buildColumnDescription(MapNode aColDef, TableDescription aTd)
           
protected  boolean getBool(MapNode values, String path)
           
protected  int getInt(MapNode values, String path)
           
protected  TableDescription getTable(CatalogDescription aCatalog, String aTableName)
           
abstract  void process(MapNode values, CatalogDescription catalog)
           
protected  void setColType(MapNode aColDef, ColumnDescription cd)
           
protected  String strip(String value)
          remove \"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDLScriptSqlMetaFactory.CatalogBuilder

protected DDLScriptSqlMetaFactory.CatalogBuilder()
Method Detail

process

public abstract void process(MapNode values,
                             CatalogDescription catalog)
                      throws IOException,
                             freemarker.template.TemplateException
Throws:
IOException
freemarker.template.TemplateException

strip

protected String strip(String value)
remove \"

Parameters:
value - - value or null to strip
Returns:
stripped value or null

getInt

protected int getInt(MapNode values,
                     String path)

getBool

protected boolean getBool(MapNode values,
                          String path)

buildColumnDescription

protected ColumnDescription buildColumnDescription(MapNode aColDef,
                                                   TableDescription aTd)

setColType

protected void setColType(MapNode aColDef,
                          ColumnDescription cd)

getTable

protected TableDescription getTable(CatalogDescription aCatalog,
                                    String aTableName)


Copyright © 2008-2012. All Rights Reserved.