|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void addField(java.lang.String name, FieldDataType fieldDataType, int length, boolean allownull, java.lang.String identity, java.lang.String identityStart, java.lang.String identityIncrement)
name
- - The name of the fieldfieldDataType
- - The database-agnostic data type of the fieldlength
- - The length of the fieldallownull
- - The allownull attribute of the fieldidentity
- - The identity of the auto-incremental fieldidentityStart
- - The Start of the auto-incremental fieldidentityIncrement
- - The Increment of the auto-incremental fieldvoid addFields(java.util.Collection<FieldDefinition> fields)
fields
- - Collection of the fieldsvoid addIndex(java.lang.String index, java.lang.String name)
index
- - Index identifiername
- - The name argument of the indexvoid addIndices(java.util.Collection<IndexDefinition> indices)
indices
- - Collection of the indicesvoid addRecordsFromXml(java.lang.String xmlFile)
xmlFile
- - Full path/name of the xml file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |