|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.sketch.util.Export.Text.TextBuilder
public class TextBuilder
A class to create strings for addition to an SQL text file. Accepts a SQLFileBuilder and an ExportHandler associated with the current sketch. Formats strings generated in a SketchToSchema object for writing to a text file. These strings are then given to the SQLFileBuilder object to be written to the user defined file.
Field Summary | |
---|---|
private SQLFileBuilder |
_fb
The file builder containing the file to be written to |
private SketchToSchema |
_schema
The object containing the sketch data, prepared for SQL |
private java.lang.String |
_sep
The new line string for this system |
Constructor Summary | |
---|---|
TextBuilder(SQLFileBuilder fileBuilder,
ExportHandler sh,
java.lang.String name)
Constructor. |
Method Summary | |
---|---|
private void |
addConstraints()
Formats constraints for SQL. |
private void |
addStringToFile(java.lang.String s)
Writes a string to the file stored in the SQLFileBuilder passed to the constructor. |
private void |
addTables()
Formats tables for SQL. |
private void |
addTriggers()
Formats triggers for SQL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private SQLFileBuilder _fb
private SketchToSchema _schema
private java.lang.String _sep
Constructor Detail |
---|
public TextBuilder(SQLFileBuilder fileBuilder, ExportHandler sh, java.lang.String name)
fileBuilder
- The SQLFileBuilder object associated with this schemash
- The ExportHandler associated with this schema.name
- The name of the new databaseMethod Detail |
---|
private void addTables()
private void addConstraints()
private void addTriggers()
private void addStringToFile(java.lang.String s)
s
- The string to write to the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |