| java.lang.Object org.jaffa.tools.domainmeta.uniface.UnifaceSchemaReader
UnifaceSchemaReader | public class UnifaceSchemaReader (Code) | | 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 | |
public static void | parse(TableInfoReader.Table table, String mappingPackage, String patternTemplate, String dtd, TableInfoReader.TableInfo tableInfo, List relationshipInfo, Writer writer, Connection connection, Root existingDomainObject, boolean ignoreNewFields, boolean doNotOverwriteExistingRelationships) 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. Parameters: mappingPackage - The value to used for the 'MappingPackage' element. |
parse | public static void parse(TableInfoReader.Table table, String mappingPackage, String patternTemplate, String dtd, TableInfoReader.TableInfo tableInfo, List relationshipInfo, Writer writer, Connection connection, Root existingDomainObject, boolean ignoreNewFields, boolean doNotOverwriteExistingRelationships) throws IOException, SQLException(Code) | | 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. Parameters: mappingPackage - The value to used for the 'MappingPackage' element. This will determine the destination for mapping files. Parameters: patternTemplate - The value to used for the 'PatternTemplate' element. This will be used for code generating the domain class. Parameters: dtd - The dtd to be used for validating the generated xml. Parameters: tableInfo - A TableInfoReader.TableInfo object with a List of TableInfoReader.Table objects which maps the various database tables to domain objects. Parameters: relationshipInfo - A List of RelationshipInfoReader.Relationship objects which has useful info for the relationships; things that cannot be determined from the Uniface definitions. Parameters: writer - The destination into which the XML is to be streamed. Parameters: connection - The connection object to use for the database queries. Parameters: existingDomainObject - The object representation of the existing file. Parameters: ignoreNewFields - Determines the default value of the element for the new fields. Parameters: doNotOverwriteExistingRelationships - Determines if existing relationships will be retained or over-written with new data. throws: IOException - in case any IO error occurs. throws: SQLException - in case any database error occurs. |
|
|