org.jaffa.tools.domainmeta.uniface
Class UnifaceSchemaReader
java.lang.Object
   org.jaffa.tools.domainmeta.uniface.UnifaceSchemaReader
org.jaffa.tools.domainmeta.uniface.UnifaceSchemaReader
- public class UnifaceSchemaReader- extends Object
This class has is to be used for converting existing Uniface defintions into a XML format, which in turn can be used for code-generating Domain classes & mapping files.
- Author:
- GautamJ
 
| Method Summary | 
| static void | parse(TableInfoReader.Table table,
           String mappingPackage,
           String patternTemplate,
           String dtd,
           TableInfoReader.TableInfo tableInfo,
           List relationshipInfo,
           Writer writer,
           Connection connection,
           org.jaffa.patterns.library.domain_creator_1_1.domain.Root existingDomainObject,
           boolean ignoreNewFields,
           boolean doNotOverwriteExistingRelationships)This will write the following XML into the input WRITER
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UnifaceSchemaReader
public UnifaceSchemaReader()
parse
public static void parse(TableInfoReader.Table table,
                         String mappingPackage,
                         String patternTemplate,
                         String dtd,
                         TableInfoReader.TableInfo tableInfo,
                         List relationshipInfo,
                         Writer writer,
                         Connection connection,
                         org.jaffa.patterns.library.domain_creator_1_1.domain.Root existingDomainObject,
                         boolean ignoreNewFields,
                         boolean doNotOverwriteExistingRelationships)
                  throws IOException,
                         SQLException
- This will write the following XML into the input WRITER.
 
 
 
     
     
     
     
     
     
     
     
         
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
         
     
     
         
             
             
             
             
             
             
                 
                     
                 
             
             
                 
                     
                 
             
         
     
 
 
- 
- Parameters:
- table- The TableInfoReader.Table object containing the information for the domain object for which the domain-creator XML is to be generated.
- mappingPackage- The value to used for the 'MappingPackage' element. This will determine the destination for mapping files.
- patternTemplate- The value to used for the 'PatternTemplate' element. This will be used for code generating the domain class.
- dtd- The dtd to be used for validating the generated xml.
- tableInfo- A TableInfoReader.TableInfo object with a List of TableInfoReader.Table objects which maps the various database tables to domain objects.
- relationshipInfo- A List of RelationshipInfoReader.Relationship objects which has useful info for the relationships; things that cannot be determined from the Uniface definitions.
- writer- The destination into which the XML is to be streamed.
- connection- The connection object to use for the database queries.
- existingDomainObject- The object representation of the existing file.
- ignoreNewFields- Determines the default value of the  element for the new fields.
- doNotOverwriteExistingRelationships- Determines if existing relationships will be retained or over-written with new data.
- Throws:
- IOException- in case any IO error occurs.
- SQLException- in case any database error occurs.
 
Copyright © 2002-2004 JAFFA Project.