--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.tools.ij.Main14\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to You under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.impl.tools.ij;\r
+\r
+import org.apache.derby.tools.JDBCDisplayUtil;\r
+\r
+\r
+import java.io.BufferedInputStream;\r
+import java.io.FileOutputStream;\r
+import java.io.FileNotFoundException;\r
+import java.io.InputStream;\r
+import java.io.PrintStream;\r
+import java.io.IOException;\r
+\r
+import java.sql.Connection;\r
+import java.sql.SQLException;\r
+\r
+import org.apache.derby.iapi.tools.i18n.LocalizedOutput;\r
+/**\r
+ * This is the controller for the JDBC3.0 version\r
+ * of ij.\r
+ * <p>\r
+ * This was written to facilitate a test harness for the\r
+ * holding cursors over commit functionality in JDBC3.0.\r
+ *\r
+ */\r
+public class Main14 extends Main\r
+{\r
+ /**\r
+ * ij can be used directly on a shell command line through\r
+ * its main program.\r
+ * @param args allows 1 file name to be specified, from which\r
+ * input will be read; if not specified, stdin is used.\r
+ */\r
+ public static void main(String[] args) throws IOException \r
+ {\r
+ Main.mainCore(args, new Main14(true));\r
+ }\r
+\r
+ /**\r
+ * create an ij tool waiting to be given input and output streams.\r
+ */\r
+ public Main14() \r
+ {\r
+ this(null);\r
+ }\r
+\r
+ public Main14(LocalizedOutput out) \r
+ {\r
+ super(out);\r
+ }\r
+\r
+ /**\r
+ * This constructor is only used so that we \r
+ * can get to the right Main based on the\r
+ * JDBC version. We don't do any work in\r
+ * this constructor and we only use this\r
+ * object to get to the right Main via\r
+ * getMain().\r
+ */\r
+ public Main14(boolean trash)\r
+ {\r
+ super(trash);\r
+ }\r
+ /**\r
+ * Get the right Main (according to \r
+ * the JDBC version.\r
+ *\r
+ * @return The right Main (according to the JDBC version).\r
+ */\r
+ public Main getMain(LocalizedOutput out)\r
+ {\r
+ return new Main14(out);\r
+ }\r
+\r
+ /**\r
+ * Get the right utilMain (according to \r
+ * the JDBC version.\r
+ *\r
+ * @return The right utilMain (according to the JDBC version).\r
+ */\r
+ public utilMain getutilMain(int numConnections, LocalizedOutput out)\r
+ {\r
+ return new utilMain14(numConnections, out);\r
+ }\r
+\r
+}\r