public class ij extends Object
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.
| Modifier and Type | Method and Description | 
|---|---|
| static String | getArg(String param,
      String[] args) | 
| static void | getPropertyArg(String[] args) | 
| static void | main(String[] args) | 
| static int | runScript(Connection conn,
         InputStream sqlIn,
         String inputEncoding,
         OutputStream sqlOut,
         String outputEncoding)Run a SQL script from an InputStream and write
 the resulting output to the provided PrintStream. | 
| static int | runScript(Connection conn,
         InputStream sqlIn,
         String inputEncoding,
         OutputStream sqlOut,
         String outputEncoding,
         boolean loadSystemProperties)Run a SQL script from an InputStream and write
 the resulting output to the provided PrintStream. | 
| static Connection | startJBMS() | 
public static void main(String[] args) throws IOException
IOException - thrown if cannot access input or output files.public static int runScript(Connection conn, InputStream sqlIn, String inputEncoding, OutputStream sqlOut, String outputEncoding) throws 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.UnsupportedEncodingExceptionpublic static int runScript(Connection conn, InputStream sqlIn, String inputEncoding, OutputStream sqlOut, String outputEncoding, boolean loadSystemProperties) throws 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.loadSystemProperties - Whether to use the system properties.UnsupportedEncodingExceptionpublic static void getPropertyArg(String[] args) throws IOException
IOExceptionpublic static Connection startJBMS() throws SQLException, IllegalAccessException, ClassNotFoundException, InstantiationException, NoSuchMethodException, InvocationTargetException
Apache Derby 10.14 API Documentation - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.