|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.sqlparser.SqlTransformer
public class SqlTransformer
| Constructor Summary | |
|---|---|
SqlTransformer(String inFile,
String outFile,
String metainfFile,
boolean force)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
checkFiles()
Check status of input and output files. |
void |
execute()
Executes transformation based on timestamp checking and force flag. |
void |
filterComments()
Filters all comments out of the input file and writes the filtered SQL to the output file. |
static void |
main(String[] args)
Main method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlTransformer(String inFile,
String outFile,
String metainfFile,
boolean force)
inFile - the input fileoutFile - the output filemetainfFile - file containing meta informationforce - force transformation flag| Method Detail |
|---|
public void execute()
public boolean checkFiles()
throws IOException
IOException - if the input file does not exist
public void filterComments()
throws FileNotFoundException,
ParseException
FileNotFoundException - if the input file could not be opened
ParseException - if the input file could not be parsedpublic static void main(String[] args)
args - command line args
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||