org.javaWebGen.util
Class GenerateView

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

public class GenerateView
extends CodeGenerator

Generated view(JSP)s in this case from the database schema. This class will NOT 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
GenerateView()
           
 
Method Summary
protected  java.lang.String buldDetail()
          build class based on template
protected  java.lang.String buldList()
          8** 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)
           
protected  java.lang.String makeCreateVars(java.lang.String[] cols, int[] types)
          gen all private vars
protected  java.lang.String makeForm(java.lang.String[] cols, int[] types)
          FORM
protected  java.lang.String makeList(java.lang.String[] cols, int[] types)
          FORM
protected  java.lang.String makeTypes(java.lang.String[] cols, int[] types)
          list of list of column types
protected  java.lang.String makeVars(java.lang.String[] cols, int[] types)
          gen all private vars
 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

GenerateView

public GenerateView()
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

makeTypes

protected java.lang.String makeTypes(java.lang.String[] cols,
                                     int[] types)
list of list of column types


makeVars

protected java.lang.String makeVars(java.lang.String[] cols,
                                    int[] types)
                             throws java.lang.Exception
gen all private vars

Throws:
java.lang.Exception

makeCreateVars

protected java.lang.String makeCreateVars(java.lang.String[] cols,
                                          int[] types)
                                   throws java.lang.Exception
gen all private vars

Throws:
java.lang.Exception

makeForm

protected java.lang.String makeForm(java.lang.String[] cols,
                                    int[] types)
                             throws java.lang.Exception
FORM

Throws:
java.lang.Exception

makeList

protected java.lang.String makeList(java.lang.String[] cols,
                                    int[] types)
                             throws java.lang.Exception
FORM

Throws:
java.lang.Exception

buldDetail

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

Throws:
java.lang.Exception

buldList

protected java.lang.String buldList()
                             throws java.lang.Exception
8** 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)

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.