org.javaWebGen.data.util
Class GenerateLookup
java.lang.Object
org.javaWebGen.data.DAO
org.javaWebGen.util.CodeGenerator
org.javaWebGen.data.util.GenerateLookup
public class GenerateLookup
- extends CodeGenerator
Method Summary |
protected java.lang.String |
buldClass()
|
protected void |
execute()
|
void |
init()
run init code ie stuff to setup templates |
static void |
main(java.lang.String[] args)
|
java.lang.String |
makeConstructor()
|
protected java.lang.String |
makeFindByMethod(java.lang.String[] cols,
int[] types)
|
protected java.lang.String |
makeInit(java.lang.String[] cols)
|
protected java.lang.String |
makeListAll(java.lang.String tableName)
|
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 |
VERSION
public static java.lang.String VERSION
COUNTRY_CODE
public static final java.lang.String COUNTRY_CODE
- See Also:
- Constant Field Values
GenerateLookup
public GenerateLookup()
init
public void init()
throws UtilException
- Description copied from class:
CodeGenerator
- run init code ie stuff to setup templates
- Specified by:
init
in class CodeGenerator
- Throws:
UtilException
makeConstructor
public java.lang.String makeConstructor()
throws java.lang.Exception
- Throws:
java.lang.Exception
makeInit
protected java.lang.String makeInit(java.lang.String[] cols)
throws java.lang.Exception
- Throws:
java.lang.Exception
makeFindByMethod
protected java.lang.String makeFindByMethod(java.lang.String[] cols,
int[] types)
throws java.lang.Exception
- Throws:
java.lang.Exception
makeListAll
protected java.lang.String makeListAll(java.lang.String tableName)
buldClass
protected java.lang.String buldClass()
throws java.lang.Exception
- 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.