Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / MyDerby-10.3 / java / engine / org / apache / derby / impl / jdbc / EmbedCallableStatement30.java
diff --git a/JMCR-Stable/real-world application/MyDerby-10.3/java/engine/org/apache/derby/impl/jdbc/EmbedCallableStatement30.java b/JMCR-Stable/real-world application/MyDerby-10.3/java/engine/org/apache/derby/impl/jdbc/EmbedCallableStatement30.java
new file mode 100644 (file)
index 0000000..0c1bfdf
--- /dev/null
@@ -0,0 +1,351 @@
+/*\r
+\r
+   Derby - Class org.apache.derby.impl.jdbc.EmbedCallableStatement30\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.jdbc;\r
+\r
+import java.io.InputStream;\r
+import java.io.Reader;\r
+import java.math.BigDecimal;\r
+import java.sql.Blob;\r
+import java.sql.Clob;\r
+import java.sql.NClob;\r
+import java.sql.ParameterMetaData;\r
+import java.sql.RowId;\r
+import java.sql.SQLException;\r
+import java.sql.SQLXML;\r
+import java.util.Map;\r
+\r
+\r
+\r
+import org.apache.derby.impl.jdbc.Util;\r
+import org.apache.derby.impl.jdbc.EmbedConnection;\r
+\r
+\r
+/**\r
+ * This class extends the EmbedCallableStatement20\r
+ * in order to support new methods and classes that come with JDBC 3.0.\r
+\r
+  <P><B>Supports</B>\r
+   <UL>\r
+   <LI> JDBC 3.0 - dependency on java.sql.ParameterMetaData introduced in JDBC 3.0 \r
+   </UL>\r
+\r
+  *\r
+ * @see org.apache.derby.impl.jdbc.EmbedCallableStatement\r
+ *\r
+ */\r
+public class EmbedCallableStatement30 extends EmbedCallableStatement20\r
+{\r
+\r
+       //////////////////////////////////////////////////////////////\r
+       //\r
+       // CONSTRUCTORS\r
+       //\r
+       //////////////////////////////////////////////////////////////\r
+       public EmbedCallableStatement30 (EmbedConnection conn, String sql,\r
+                                                                  int resultSetType,\r
+                                                                  int resultSetConcurrency,\r
+                                                                  int resultSetHoldability)\r
+               throws SQLException\r
+       {\r
+               super(conn, sql, resultSetType, resultSetConcurrency, resultSetHoldability);\r
+       }\r
+\r
+       /*\r
+        * Note: all the JDBC 3.0 Prepared statement methods are duplicated\r
+        * in here because this class inherits from Local20/EmbedCallableStatement, which\r
+        * inherits from Local/EmbedCallableStatement.  This class should inherit from a\r
+        * local30/PreparedStatement.  Since java does not allow multiple inheritance,\r
+        * duplicate the code here.\r
+        */\r
+\r
+       /**\r
+    * JDBC 3.0\r
+    *\r
+    * Retrieves the number, types and properties of this PreparedStatement\r
+    * object's parameters.\r
+    *\r
+    * @return a ParameterMetaData object that contains information about the\r
+    * number, types and properties of this PreparedStatement object's parameters.\r
+    * @exception SQLException if a database access error occurs\r
+       */\r
+       public ParameterMetaData getParameterMetaData()\r
+    throws SQLException\r
+       {\r
+               checkStatus();\r
+               if (preparedStatement == null)\r
+                       return null;\r
+               \r
+               return new EmbedParameterMetaData30(\r
+                               getParms(), preparedStatement.getParameterTypes());\r
+       }\r
+\r
+       public Reader getCharacterStream(String parameterName) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public Reader getNCharacterStream(int parameterIndex) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public Reader getNCharacterStream(String parameterName) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public NClob getNClob(int parameterIndex) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public NClob getNClob(String parameterName) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public String getNString(int parameterIndex) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public String getNString(String parameterName) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+\r
+       public RowId getRowId(int parameterIndex) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public RowId getRowId(String parameterName) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public SQLXML getSQLXML(int parameterIndex) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public SQLXML getSQLXML(String parameterName) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public void setAsciiStream(String parameterName, InputStream x)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setAsciiStream(String parameterName, InputStream x, long length)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setBinaryStream(String parameterName, InputStream x)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setBinaryStream(String parameterName, InputStream x, long length)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setBlob(String parameterName, Blob x) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setBlob(String parameterName, InputStream inputStream)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setBlob(String parameterName, InputStream inputStream,\r
+                       long length) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setCharacterStream(String parameterName, Reader reader)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setCharacterStream(String parameterName, Reader reader,\r
+                       long length) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setClob(String parameterName, Clob x) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setClob(String parameterName, Reader reader)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setClob(String parameterName, Reader reader, long length)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNCharacterStream(String parameterName, Reader value)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNCharacterStream(String parameterName, Reader value,\r
+                       long length) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNClob(String parameterName, NClob value) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNClob(String parameterName, Reader reader)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNClob(String parameterName, Reader reader, long length)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNString(String parameterName, String value)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setRowId(String parameterName, RowId x) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setSQLXML(String parameterName, SQLXML xmlObject)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNCharacterStream(int parameterIndex, Reader value)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNCharacterStream(int parameterIndex, Reader value,\r
+                       long length) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNClob(int parameterIndex, NClob value) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNClob(int parameterIndex, Reader reader) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNClob(int parameterIndex, Reader reader, long length)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setNString(int parameterIndex, String value)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setRowId(int parameterIndex, RowId x) throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public void setSQLXML(int parameterIndex, SQLXML xmlObject)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public <T> T getObject(int parameterIndex, Class<T> type)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public <T> T getObject(String parameterName, Class<T> type)\r
+                       throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return null;\r
+       }\r
+\r
+       public void closeOnCompletion() throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               \r
+       }\r
+\r
+       public boolean isCloseOnCompletion() throws SQLException {\r
+               // TODO Auto-generated method stub\r
+               return false;\r
+       }\r
+\r
+}\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r
+\r