|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.engine.database.transform.SQLToAppData
public class SQLToAppData
A Class that converts an sql input file to a Database structure. The class makes use of SQL Scanner to get sql tokens and the parses these to create the Database class. SQLToAppData is in effect a simplified sql parser.
Constructor Summary | |
---|---|
SQLToAppData(String sqlFile)
Create a new class with an input Reader |
|
SQLToAppData(String sqlFile,
String databaseType)
Create a new class with an input Reader. |
Method Summary | |
---|---|
Database |
execute()
Execute the parser. |
String |
getSqlFile()
Get the current input sql file |
void |
setSqlFile(String sqlFile)
Set the current input sql file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLToAppData(String sqlFile)
sqlFile
- the sql filepublic SQLToAppData(String sqlFile, String databaseType)
sqlFile
- the sql filedatabaseType
- Method Detail |
---|
public String getSqlFile()
public void setSqlFile(String sqlFile)
sqlFile
- the sql filepublic Database execute() throws IOException, ParseException
IOException
- If an I/O error occurs
ParseException
- error parsing the input file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |