JProjects.eab.data.wizzard
Class DataWizzard

java.lang.Object
  |
  +--JProjects.eab.data.wizzard.DataWizzard

public class DataWizzard
extends java.lang.Object

Command line interface to Data Access Builder. Use:
java JProjects.eab.data.wizzard.DataWizzard map-parameters-file

Map parameter file have a property file format. Map parameter file propeties:

BASE_NAME
= Base name for classes to generate.
TABLE_NAMES
= List of table names. Each table name may be qualified by schema name.
TABLE_ALIASES
= List of tables' aliases. Aliases are used in generated SQL to avoid naming conflicts between columns from different tables.
COL_NAMES
= List of column names. Entries should be grouped in the order of corresponding table names in the TABLE_NAMES. Columns that constitute a primary key (rather DataId of the PersistentObject) should be placed at head.
DATA_TYPES
= List of columns' data types. Entries should correspond to ones from COL_NAMES. Names for data types coincide with those from jdbc specification. See java.sql.Types.
NULLABLES
= true/false properties for the columns.
FIELD_NAMES
= List of persistent object field names. Each such field will contain data from the corresponding column of the database table. Optional property. Defaults to COL_NAMES.
DATA_IDS
=true/false properties for the columns that comprise a data id. Here true means that that column can be modified by application (in contrast to serial data type for Informix).
IS_READ_ONLY
=true/false property for generated classes. Should be true if it is mapping for SQL join.
SQLLINK
= String that constitute SQL join clause. It goes into generated SQL "AS IS".

Author:
Alexander Jaremenko
< jarem@altavista.net >

Constructor Summary
DataWizzard()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void parseCfgFile(java.io.InputStream f)
           
 void run(java.lang.String cfgFN)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataWizzard

public DataWizzard()
Method Detail

run

public void run(java.lang.String cfgFN)

main

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

parseCfgFile

protected void parseCfgFile(java.io.InputStream f)
                     throws java.io.IOException