|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.test.database.SqlFile
public class SqlFile
Field Summary | |
---|---|
boolean |
plMode
|
boolean |
recursed
|
Constructor Summary | |
---|---|
SqlFile(boolean inInteractive,
java.util.HashMap inVars)
Constructor for reading stdin instead of a file for commands. |
|
SqlFile(java.io.File inFile,
boolean inInteractive,
java.util.HashMap inVars)
Interpret lines of input file as SQL Statements, Comments, Special Commands, and Buffer Commands. |
Method Summary | |
---|---|
static boolean |
canDisplayType(int i)
This method is used to tell SqlFile whether this Sql Type must ALWAYS be loaded to the binary buffer without displaying. |
static java.lang.String |
convertEscapes(java.lang.String inString)
|
void |
csvSafe(java.lang.String s)
Validate that String is safe to display in a CSV file. |
void |
execute(java.sql.Connection conn,
boolean coeOverride)
Process all the commands on stdin. |
void |
execute(java.sql.Connection conn,
java.lang.Boolean coeOverride)
Process all the commands on stdin. |
void |
execute(java.sql.Connection conn,
java.io.PrintStream stdIn,
java.io.PrintStream errIn,
java.lang.Boolean coeOverride)
Process all the commands in the file (or stdin) associated with "this" object. |
static java.lang.String[] |
getTokenArray(java.lang.String inString)
|
void |
importCsv(java.lang.String filePath)
Name is self-explanatory. |
static java.lang.String |
sqlTypeToString(int i)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean recursed
public boolean plMode
Constructor Detail |
---|
public SqlFile(java.io.File inFile, boolean inInteractive, java.util.HashMap inVars) throws java.io.IOException
inFile
- inFile of null means to read stdin.inInteractive
- If true, prompts are printed, the interactive
Special commands are enabled, and
continueOnError defaults to true.
java.io.IOException
public SqlFile(boolean inInteractive, java.util.HashMap inVars) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void execute(java.sql.Connection conn, java.lang.Boolean coeOverride) throws java.io.IOException, org.hsqldb.util.SqlToolError, java.sql.SQLException
conn
- The JDBC connection to use for SQL Commands.
java.io.IOException
org.hsqldb.util.SqlToolError
java.sql.SQLException
public void execute(java.sql.Connection conn, boolean coeOverride) throws java.io.IOException, org.hsqldb.util.SqlToolError, java.sql.SQLException
conn
- The JDBC connection to use for SQL Commands.
java.io.IOException
org.hsqldb.util.SqlToolError
java.sql.SQLException
public void execute(java.sql.Connection conn, java.io.PrintStream stdIn, java.io.PrintStream errIn, java.lang.Boolean coeOverride) throws java.io.IOException, org.hsqldb.util.SqlToolError, java.sql.SQLException
conn
- The JDBC connection to use for SQL Commands.
java.io.IOException
org.hsqldb.util.SqlToolError
java.sql.SQLException
public static java.lang.String[] getTokenArray(java.lang.String inString)
public static boolean canDisplayType(int i)
Types
public static java.lang.String sqlTypeToString(int i)
public void csvSafe(java.lang.String s) throws java.sql.SQLException
java.sql.SQLException
- (should throw something else, since this is
not an SQL problem. Fix the caller!)public static java.lang.String convertEscapes(java.lang.String inString)
public void importCsv(java.lang.String filePath) throws java.io.IOException, jcolibri.test.database.SqlFile.BadSpecial
java.io.IOException
jcolibri.test.database.SqlFile.BadSpecial
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |