org.jaffa.tools.domainmeta.uniface
Class MetaInfoGenerator

java.lang.Object
  extended byorg.jaffa.tools.domainmeta.uniface.MetaInfoGenerator

public class MetaInfoGenerator
extends Object

Use this class to generate the meta files for the domain objects. These meta files are then used by the Code Generator to generate the required classes and mapping files.

Author:
GautamJ

Constructor Summary
MetaInfoGenerator()
           
 
Method Summary
static void generate(String input)
          This will parse the input file generating meta files for each object specified in the tableinfo file.
static void main(String[] args)
          This will invoke the 'generate()' method, passing the input argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaInfoGenerator

public MetaInfoGenerator()
Method Detail

generate

public static void generate(String input)
                     throws ParserConfigurationException,
                            SAXException,
                            IOException,
                            SQLException,
                            ClassNotFoundException
This will parse the input file generating meta files for each object specified in the tableinfo file. For each table object, the Uniface schema will be used for getting all the meta information. XML format for the input file is:

Parameters:
input - the input file.
Throws:
ParserConfigurationException - if the xml parsing fails.
SAXException - if ?the xml parsing fails.
IOException - if the xml parsing fails.
SQLException - in case any database error occurs.
ClassNotFoundException - in case the database driver class is not found.

main

public static void main(String[] args)
This will invoke the 'generate()' method, passing the input argument.

Parameters:
args - This expects one argument to be passed in. This argument will be the DomainMetaInfoGenerator.xml file, relative to the classpath.


Copyright © 2002-2004 JAFFA Project.