com.sage.orion.sdata.servlet.swtservice.tablebuilder
Interface DBTableBuilder

All Known Implementing Classes:
JDBCTableBuilder

public interface DBTableBuilder

Interface contains functions for retrieving table definition info and populating table with data


Method Summary
 void addField(java.lang.String name, FieldDataType fieldDataType, int length, boolean allownull, java.lang.String identity, java.lang.String identityStart, java.lang.String identityIncrement)
          Adds field to the collection
 void addFields(java.util.Collection<FieldDefinition> fields)
          Adds fields to the table
 void addIndex(java.lang.String index, java.lang.String name)
          Adds index to the collection
 void addIndices(java.util.Collection<IndexDefinition> indices)
          Adds indices to the table
 void addRecordsFromXml(java.lang.String xmlFile)
          Reads data records from the xml file and populates the table
 

Method Detail

addField

void addField(java.lang.String name,
              FieldDataType fieldDataType,
              int length,
              boolean allownull,
              java.lang.String identity,
              java.lang.String identityStart,
              java.lang.String identityIncrement)
Adds field to the collection

Parameters:
name - - The name of the field
fieldDataType - - The database-agnostic data type of the field
length - - The length of the field
allownull - - The allownull attribute of the field
identity - - The identity of the auto-incremental field
identityStart - - The Start of the auto-incremental field
identityIncrement - - The Increment of the auto-incremental field

addFields

void addFields(java.util.Collection<FieldDefinition> fields)
Adds fields to the table

Parameters:
fields - - Collection of the fields

addIndex

void addIndex(java.lang.String index,
              java.lang.String name)
Adds index to the collection

Parameters:
index - - Index identifier
name - - The name argument of the index

addIndices

void addIndices(java.util.Collection<IndexDefinition> indices)
Adds indices to the table

Parameters:
indices - - Collection of the indices

addRecordsFromXml

void addRecordsFromXml(java.lang.String xmlFile)
Reads data records from the xml file and populates the table

Parameters:
xmlFile - - Full path/name of the xml file


Copyright © 2011 Sage Software, Inc. All rights reserved.