![]() |
Quadcap Embeddable Database |
If a statement generates a ResultSet, the ResultSet is displayed to a PrintWriter.
Definition at line 68 of file Loader.java.
Public Member Functions | |
| Loader () | |
| No-argument bean constructor. | |
| Loader (Connection conn) | |
| Construct a new Loader object bound to the specified database connection. | |
| void | setConnection (Connection conn) |
| Set this loader's database connection. | |
| Connection | getConnection () |
| Get this loader's database connection. | |
| void | setWriter (PrintWriter writer) |
| Set the loader's writer object. | |
| PrintWriter | getWriter () |
| Return the loader's writer. | |
| void | execute (String sql) |
| Execute a single SQL statement. | |
| void | loadStream (InputStream in) throws IOException, SQLException |
| void | loadFile (String filename) |
| The specified file is scanned for semicolon-delimited SQL statements which are executed one at a time. | |
Static Public Member Functions | |
| String | getLine (InputStream is) throws IOException |
Package Functions | |
| final void | print (String s) |
| final void | println (String s) |
| final void | print (Throwable t) |
| final void | showResultSet (ResultSet rs) throws SQLException |
| final void | showResultSet (ResultSet rs, int lim) throws SQLException |
Static Package Functions | |
| final String | pad (int wid, String s) |
Package Attributes | |
| Connection | conn |
| StringBuffer | buffer = new StringBuffer() |
| PrintWriter | writer = null |
| int | rsLimit = Integer.MAX_VALUE |
Static Package Attributes | |
| final ConfigNumber | trace |
| final int | COLMAX = 12 |
|
|
No-argument bean constructor. We need a connection to do something useful. Definition at line 82 of file Loader.java. |
|
|
Construct a new Loader object bound to the specified database connection.
Definition at line 91 of file Loader.java. |
|
|
Execute a single SQL statement. There are several statements that are not passed directly to the JDBC driver, but instead are executed by the loader:
Definition at line 277 of file Loader.java. References com.quadcap.sql.tools.Loader.conn, com.quadcap.sql.tools.Loader.execute(), com.quadcap.sql.tools.Loader.rsLimit, and com.quadcap.sql.Connection.setAutoCommit(). Referenced by com.quadcap.sql.tools.Loader.execute(). |
|
|
Get this loader's database connection.
Definition at line 109 of file Loader.java. |
|
|
Definition at line 208 of file Loader.java. References com.quadcap.sql.tools.Loader.getLine(). Referenced by com.quadcap.sql.tools.Loader.getLine(). |
|
|
Return the loader's writer.
Definition at line 129 of file Loader.java. References com.quadcap.sql.tools.Loader.writer. |
|
|
The specified file is scanned for semicolon-delimited SQL statements which are executed one at a time.
Definition at line 354 of file Loader.java. References com.quadcap.sql.tools.Loader.loadFile(). Referenced by com.quadcap.sql.tools.Loader.loadFile(), and com.quadcap.sql.tools.XmlLoad.main(). |
|
|
Definition at line 308 of file Loader.java. References com.quadcap.sql.tools.Loader.conn, com.quadcap.sql.tools.Loader.loadStream(), com.quadcap.sql.tools.Loader.rsLimit, com.quadcap.sql.Connection.setAutoCommit(), and com.quadcap.sql.tools.Loader.trace. Referenced by com.quadcap.sql.tools.Loader.loadStream(). |
|
||||||||||||
|
Definition at line 162 of file Loader.java. References com.quadcap.sql.tools.Loader.pad(). Referenced by com.quadcap.sql.tools.Loader.pad(). |
|
|
Definition at line 149 of file Loader.java. References com.quadcap.sql.tools.Loader.trace, and com.quadcap.sql.tools.Loader.writer. |
|
|
Definition at line 133 of file Loader.java. References com.quadcap.sql.tools.Loader.buffer, com.quadcap.sql.tools.Loader.print(), com.quadcap.sql.tools.Loader.trace, and com.quadcap.sql.tools.Loader.writer. Referenced by com.quadcap.sql.tools.Loader.print(). |
|
|
Definition at line 140 of file Loader.java. References com.quadcap.sql.tools.Loader.buffer, com.quadcap.sql.tools.Loader.println(), com.quadcap.sql.tools.Loader.trace, and com.quadcap.sql.tools.Loader.writer. Referenced by com.quadcap.sql.tools.Loader.println(). |
|
|
Set this loader's database connection.
Definition at line 100 of file Loader.java. References com.quadcap.sql.tools.Loader.setConnection(). Referenced by com.quadcap.sql.tools.Loader.setConnection(). |
|
|
Set the loader's writer object. Depending on the loader's trace level, the loader will write a trace of SQL statement execution to this writer.
Definition at line 120 of file Loader.java. References com.quadcap.sql.tools.Loader.setWriter(). Referenced by com.quadcap.sql.tools.XmlLoad.main(), and com.quadcap.sql.tools.Loader.setWriter(). |
|
||||||||||||
|
Definition at line 177 of file Loader.java. References com.quadcap.sql.tools.Loader.COLMAX. |
|
|
Definition at line 173 of file Loader.java. References com.quadcap.sql.tools.Loader.showResultSet(). Referenced by com.quadcap.sql.tools.Loader.showResultSet(). |
|
|
Definition at line 73 of file Loader.java. Referenced by com.quadcap.sql.tools.Loader.print(), and com.quadcap.sql.tools.Loader.println(). |
|
|
Definition at line 76 of file Loader.java. Referenced by com.quadcap.sql.tools.Loader.showResultSet(). |
|
|
Definition at line 72 of file Loader.java. Referenced by com.quadcap.sql.tools.Loader.execute(), and com.quadcap.sql.tools.Loader.loadStream(). |
|
|
Definition at line 75 of file Loader.java. Referenced by com.quadcap.sql.tools.Loader.execute(), and com.quadcap.sql.tools.Loader.loadStream(). |
|
|
Initial value:
Definition at line 69 of file Loader.java. Referenced by com.quadcap.sql.tools.Loader.loadStream(), com.quadcap.sql.tools.Loader.print(), and com.quadcap.sql.tools.Loader.println(). |
|
|
Definition at line 74 of file Loader.java. Referenced by com.quadcap.sql.tools.Loader.getWriter(), com.quadcap.sql.tools.Loader.print(), and com.quadcap.sql.tools.Loader.println(). |