| java.lang.Object org.griphyn.vdl.toolkit.Toolkit org.griphyn.vdl.toolkit.VDLHelper org.griphyn.vdl.toolkit.UpdateVDC
UpdateVDC | public class UpdateVDC extends VDLHelper (Code) | | This class uses the VDLxParser to parse VDLx specifications
and add them to the database backend. If a definition already exists
in the database, it is updated in overwrite mode, or rejected in
insert mode.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ See Also: org.griphyn.vdl.parser.VDLxParser See Also: |
Constructor Summary | |
public | UpdateVDC(String appName, Writer reject, int level) This initializies the class to handle inserts and updates, and
optionally store the rejects for later availability. |
Method Summary | |
protected void | finalize() Closes the rejects file, if still open. | protected static LongOpt[] | generateValidOptions() Creates a set of options. | public static void | main(String[] args) Add or update definition's from VDLx documents into the database. | public static void | showUsage(boolean ow) Prints the usage string. | public void | showUsage() |
UpdateVDC | public UpdateVDC(String appName, Writer reject, int level) throws IOException(Code) | | This initializies the class to handle inserts and updates, and
optionally store the rejects for later availability.
Parameters: appName - is the true name of the application Parameters: reject - is a writer to output rejected inserts. Parameters: level - is the verbosity level for the "app" logging queue. |
finalize | protected void finalize() throws Throwable(Code) | | Closes the rejects file, if still open.
|
generateValidOptions | protected static LongOpt[] generateValidOptions()(Code) | | Creates a set of options.
|
main | public static void main(String[] args)(Code) | | Add or update definition's from VDLx documents into the database.
|
showUsage | public static void showUsage(boolean ow)(Code) | | Prints the usage string.
Parameters: ow - is the overwrite mode to distinguish between insert and update. |
showUsage | public void showUsage()(Code) | | |
|
|