|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.tools.ij
public class ij
ij is Derby's interactive JDBC scripting tool. It is a simple utility for running scripts against a Derby database. You can also use it interactively to run ad hoc queries. ij provides several commands for ease in accessing a variety of JDBC features.
To run from the command line enter the following:
java [options] org.apache.derby.tools.ij [arguments]
ij is can also be used with any database server that supports a JDBC driver.
| Method Summary | |
|---|---|
static java.lang.String |
getArg(java.lang.String param,
java.lang.String[] args)
|
static void |
getPropertyArg(java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
|
static int |
runScript(java.sql.Connection conn,
java.io.InputStream sqlIn,
java.lang.String inputEncoding,
java.io.OutputStream sqlOut,
java.lang.String outputEncoding)
Run a SQL script from an InputStream and write the resulting output to the provided PrintStream. |
static java.sql.Connection |
startJBMS()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException - thrown if cannot access input or output files.
public static int runScript(java.sql.Connection conn,
java.io.InputStream sqlIn,
java.lang.String inputEncoding,
java.io.OutputStream sqlOut,
java.lang.String outputEncoding)
throws java.io.UnsupportedEncodingException
conn - Connection to be used as the script's default connection.sqlIn - InputStream for the script.inputEncoding - Encoding of the script.sqlOut - OutputStream for the script's outputoutputEncoding - Output encoding to use.
java.io.UnsupportedEncodingException
public static java.lang.String getArg(java.lang.String param,
java.lang.String[] args)
public static void getPropertyArg(java.lang.String[] args)
throws java.io.IOException
java.io.IOException
public static java.sql.Connection startJBMS()
throws java.sql.SQLException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException,
java.lang.InstantiationException
java.sql.SQLException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.InstantiationException
|
Built on Wed 2007-08-01 06:53:39-0700, from revision 561794 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||