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.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static void | |
| public static void | |
| public static int | Returns: Number of SQLExceptions thrown during the execution, -1 if not known.Connection to be used as the script's default connection. conn, InputStream InputStream for the script. sqlIn, String Encoding of the script. inputEncoding, OutputStream OutputStream for the script's output sqlOut, String Output encoding to use. outputEncoding)Run a SQL script from an InputStream and write the resulting output to the provided PrintStream. |
| public static int | Returns: Number of SQLExceptions thrown during the execution, -1 if not known.Connection to be used as the script's default connection. conn, InputStream InputStream for the script. sqlIn, String Encoding of the script. inputEncoding, OutputStream OutputStream for the script's output sqlOut, String Output encoding to use. outputEncoding, boolean Whether to use the system properties. loadSystemProperties)Run a SQL script from an InputStream and write the resulting output to the provided PrintStream. |
| public static Connection |
| ij | back to summary |
|---|---|
| private ij() | |
| getArg | back to summary |
|---|---|
| public static String getArg(String param, String[] args) | |
| getPropertyArg | back to summary |
|---|---|
| public static void getPropertyArg(String[] args) throws IOException | |
| main | back to summary |
|---|---|
public static void main(String[] args) throws IOException
| |
| runScript | back to summary |
|---|---|
| public static int runScript(Connection conn, InputStream sqlIn, String inputEncoding, OutputStream sqlOut, String outputEncoding) throws UnsupportedEncodingException Run a SQL script from an InputStream and write the resulting output to the provided PrintStream. SQL commands are separated by a semi-colon ';' character.
| |
| runScript | back to summary |
|---|---|
| public static int runScript(Connection conn, InputStream sqlIn, String inputEncoding, OutputStream sqlOut, String outputEncoding, boolean loadSystemProperties) throws UnsupportedEncodingException Run a SQL script from an InputStream and write the resulting output to the provided PrintStream. SQL commands are separated by a semi-colon ';' character.
| |
| startJBMS | back to summary |
|---|---|
| public static Connection startJBMS() throws SQLException, IllegalAccessException, ClassNotFoundException, InstantiationException, NoSuchMethodException, InvocationTargetException | |