All Packages This Package Previous Next
Class JProjects.eab.data.wizzard.DCGenerator
java.lang.Object
|
+----JProjects.eab.data.wizzard.DCGenerator
- public class DCGenerator
- extends Object
Data Access Builder's code generator.
- Author:
- Alexander Jaremenko < jarem@isb.gomel.by >
-
DCGenerator(String[], String[], String, String[], String[], int[][], boolean[], boolean[], String)
- This constructor used by the GUI front-end JProjects.wizzard.Database.
-
DCGenerator(String[], String[], String, String[], String[], String[], boolean[], boolean[], String)
- This constructor used by the command line front-end JProjects.eab.data.wizzard.DataWizzard
-
generate(String)
- Launches code generation.
-
setReadOnly(boolean)
- Sets IS_READ_ONLY property for generated classes.
DCGenerator
public DCGenerator(String tbls[],
String tblAlias[],
String baseName,
String colNs[],
String flds[],
int dataTypes[][],
boolean nullable[],
boolean isModDI[],
String sqlLink)
- This constructor used by the GUI front-end JProjects.wizzard.Database.
- Parameters:
- tbls - array of table names
- tblAlias - array of table aliases
- baseName - base name for generated classes
- colNs - array of column names
- flds - array of field names
- dataTypes - 2-dim. array. First element of an row holds JDBC
type code and the second one scale value.
- nullable - array of nullables properties
- isModDI - array of data id modifiable properties
- sqlLink - SQLLINK property
DCGenerator
public DCGenerator(String tbls[],
String tblAlias[],
String baseName,
String colNs[],
String flds[],
String dataTypes[],
boolean nullable[],
boolean isModDI[],
String sqlLink)
- This constructor used by the command line front-end JProjects.eab.data.wizzard.DataWizzard
- Parameters:
- tbls - array of table names
- tblAlias - array of table aliases
- baseName - base name for generated classes
- colNs - array of column names
- flds - array of field names
- dataTypes - array of JDBC data types,
- nullable - array of nullables properties
- isModDI - array of data id modifiable properties
- sqlLink - SQLLINK property
- See Also:
- DataWizzard
setReadOnly
public void setReadOnly(boolean flag)
- Sets IS_READ_ONLY property for generated classes.
generate
public void generate(String dir) throws IOException
- Launches code generation.
- Parameters:
- dir - target directory
- Throws: IOException
- if something is wrong with I/O
All Packages This Package Previous Next