org.javaWebGen.util
Class GenerateModel

java.lang.Object
  extended by org.javaWebGen.data.DAO
      extended by org.javaWebGen.util.CodeGenerator
          extended by org.javaWebGen.util.GenerateModel

public class GenerateModel
extends CodeGenerator

create Models Generated Web Model Objects from the database config creates a WModel classr and a implemtation class The implemation class Will be overwriten!

Version:
$Revision: 1.2 $
Author:
Kevin scott

Field Summary
static java.lang.String VERSION
           
 
Fields inherited from class org.javaWebGen.util.CodeGenerator
TS
 
Fields inherited from class org.javaWebGen.data.DAO
TOO_MANY_ROWS, TOO_MANY_ROWS_WARNING
 
Constructor Summary
GenerateModel()
           
 
Method Summary
protected  java.lang.String buldClass()
          build class based on template
protected  java.lang.String buldSubClass()
          build class based on template
protected  void execute()
           
 void init()
          run init code ie stuff to setup templates
static void main(java.lang.String[] args)
          main
 void useage()
          print instruction on how to object from the command line to sysout
 
Methods inherited from class org.javaWebGen.util.CodeGenerator
getClassText, getColNames, getColTypes, getFileName, getFilePath, getPrimaryKeys, getPrimaryKeyTypes, getPrimayParmCast, getTableName, getTemplate, getVars, mapData, processFile, setCmdParms, setTableName
 
Methods inherited from class org.javaWebGen.data.DAO
close, getColumnClass, getConnection, getDataManager, getNextValue, getNextValue, getResultSet, query, query, query, query, runQuery, runQuery, runQuery, runQuery, setColumn, update, update, update, update, updateDataBean, updateDataBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values
Constructor Detail

GenerateModel

public GenerateModel()
Method Detail

init

public void init()
Description copied from class: CodeGenerator
run init code ie stuff to setup templates

Specified by:
init in class CodeGenerator

buldClass

protected java.lang.String buldClass()
                              throws java.lang.Exception
build class based on template

Throws:
java.lang.Exception

buldSubClass

protected java.lang.String buldSubClass()
                                 throws java.lang.Exception
build class based on template

Throws:
java.lang.Exception

execute

protected void execute()
                throws UtilException
Specified by:
execute in class CodeGenerator
Throws:
UtilException

main

public static void main(java.lang.String[] args)
main


useage

public void useage()
Description copied from class: CodeGenerator
print instruction on how to object from the command line to sysout

Specified by:
useage in class CodeGenerator


Copyright(C) 2003-2006 Kevin Scott - All Rights Reserved.