public class MakeDbObjectSource
extends java.lang.Object
A package name is supplied to the class as the 1st parameter on the command line (case sensitive). The supplied package name is inserted within the string "package com.dpslink.[pkgname].db" where [pkgname] denotes the insertion point.
A table name is supplied to the class as the 2nd parameter on the command line (case sensitive). A table name of *all indicates that source files should be created for all defined tables.
The source files are created in the server application's configured temp folder.
The source files are generated via template processing using two base package templates:
Modifier and Type | Class and Description |
---|---|
class |
MakeDbObjectSource.Field
Inner class that stores template data for a field in a table.
|
Constructor and Description |
---|
MakeDbObjectSource(java.lang.String pkgname,
java.lang.String tblname)
Constructs a new database table object source maker and controls the
processing.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Main entry point for when the class is started from a command line.
|
private boolean |
writeTable(java.lang.String pkgname,
java.lang.String tblname)
Writes a table's database object source file.
|
public MakeDbObjectSource(java.lang.String pkgname, java.lang.String tblname)
pkgname
- (String) The name of the source package.tblname
- (String) The name of a configured database table or
*all to process all configured tables.public static void main(java.lang.String[] args)
args
- (String[]) A String
array of startup
parameters for the class.private boolean writeTable(java.lang.String pkgname, java.lang.String tblname)
pkgname
- (String) The name of the source package.tblname
- (String) The name of the table to process.true
if the writing is successful,
otherwise (@code false}.