--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.jdbc.EmbedCallableStatement40\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.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
+\r
+import org.apache.derby.iapi.reference.SQLState;\r
+\r
+public class EmbedCallableStatement40 extends EmbedCallableStatement30 {\r
+ \r
+ \r
+ /** Creates a new instance of EmbedCallableStatement40 */\r
+ public EmbedCallableStatement40(EmbedConnection conn, String sql,\r
+ int resultSetType,\r
+ int resultSetConcurrency,\r
+ int resultSetHoldability) throws SQLException{\r
+ super(conn, sql, resultSetType, resultSetConcurrency, resultSetHoldability); \r
+ }\r
+ \r
+ public Reader getCharacterStream(String parameterName)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+\r
+ public Reader getNCharacterStream(int parameterIndex)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public Reader getNCharacterStream(String parameterName)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public String getNString(int parameterIndex)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public String getNString(String parameterName)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+\r
+ public void setBlob(String parameterName, Blob x)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public void setClob(String parameterName, Clob x)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+\r
+ public RowId getRowId(int parameterIndex) throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public RowId getRowId(String parameterName) throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public void setRowId(String parameterName, RowId x) throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ \r
+ public void setNString(String parameterName, String value)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public void setNCharacterStream(String parameterName, Reader value, long length)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public void setNClob(String parameterName, NClob value) throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public void setClob(String parameterName, Reader reader, long length)\r
+ throws SQLException{\r
+ throw Util.notImplemented();\r
+ \r
+ }\r
+ \r
+ public void setBlob(String parameterName, InputStream inputStream, long length)\r
+ throws SQLException{\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public void setNClob(String parameterName, Reader reader, long length)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public NClob getNClob(int i) throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ \r
+ public NClob getNClob(String parameterName) throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {\r
+ throw Util.notImplemented();\r
+ \r
+ }\r
+ \r
+ public SQLXML getSQLXML(int parameterIndex) throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ public SQLXML getSQLXML(String parametername) throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+ \r
+ \r
+ \r
+ \r
+ \r
+ /************************************************************************\r
+ * The prepared statement methods\r
+ *************************************************************************/\r
+ \r
+ \r
+ public void setRowId(int parameterIndex, RowId x) throws SQLException{\r
+ throw Util.notImplemented("setRowId(int, RowId)");\r
+ }\r
+ \r
+ public void setNString(int index, String value) throws SQLException{\r
+ throw Util.notImplemented("setNString (int,value)");\r
+ }\r
+ \r
+ public void setNCharacterStream(int parameterIndex, Reader value)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+\r
+ public void setNCharacterStream(int index, Reader value, long length) throws SQLException{\r
+ throw Util.notImplemented ("setNCharacterStream (int, Reader, long)");\r
+ }\r
+ \r
+ public void setNClob(int index, NClob value) throws SQLException{\r
+ throw Util.notImplemented ("setNClob (int, NClob)");\r
+ }\r
+\r
+ public void setNClob(int parameterIndex, Reader reader)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+\r
+ public void setNClob(int parameterIndex, Reader reader, long length)\r
+ throws SQLException{\r
+ throw Util.notImplemented ("setNClob(int,reader,length)");\r
+ } \r
+ \r
+ public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException{\r
+ throw Util.notImplemented ("setSQLXML (int, SQLXML)");\r
+ } \r
+ \r
+ /**\r
+ * JDBC 4.0\r
+ *\r
+ * Retrieves the number, types and properties of this CallableStatement\r
+ * object's parameters.\r
+ *\r
+ * @return a ParameterMetaData object that contains information about the\r
+ * number, types and properties of this CallableStatement object's parameters.\r
+ * @exception SQLException if a database access error occurs\r
+ *\r
+ */\r
+ public ParameterMetaData getParameterMetaData()\r
+ throws SQLException\r
+ {\r
+ checkStatus();\r
+ return new EmbedParameterMetaData40(\r
+ getParms(), preparedStatement.getParameterTypes());\r
+ }\r
+ \r
+ /**\r
+ * Returns false unless <code>interfaces</code> is implemented \r
+ * \r
+ * @param interfaces a Class defining an interface.\r
+ * @return true if this implements the interface or \r
+ * directly or indirectly wraps an object \r
+ * that does.\r
+ * @throws java.sql.SQLException if an error occurs while determining \r
+ * whether this is a wrapper for an object \r
+ * with the given interface.\r
+ */\r
+ public boolean isWrapperFor(Class<?> interfaces) throws SQLException {\r
+ checkStatus();\r
+ return interfaces.isInstance(this);\r
+ }\r
+\r
+ public void setAsciiStream(String parameterName, InputStream x)\r
+ throws SQLException {\r
+ throw Util.notImplemented("setAsciiStream(String,InputStream)");\r
+ }\r
+\r
+ public void setBinaryStream(String parameterName, InputStream x)\r
+ throws SQLException {\r
+ throw Util.notImplemented("setBinaryStream(String,InputStream)");\r
+ }\r
+\r
+ public void setBlob(String parameterName, InputStream inputStream)\r
+ throws SQLException {\r
+ throw Util.notImplemented("setBlob(String,InputStream)");\r
+ }\r
+\r
+ public void setCharacterStream(String parameterName, Reader reader)\r
+ throws SQLException {\r
+ throw Util.notImplemented("setCharacterStream(String,Reader)");\r
+ }\r
+\r
+ public void setClob(String parameterName, Reader reader)\r
+ throws SQLException {\r
+ throw Util.notImplemented("setClob(String,Reader)");\r
+ }\r
+\r
+ public void setNCharacterStream(String parameterName, Reader value)\r
+ throws SQLException {\r
+ throw Util.notImplemented("setNCharacterStream(String,Reader)");\r
+ }\r
+\r
+ public void setNClob(String parameterName, Reader reader)\r
+ throws SQLException {\r
+ throw Util.notImplemented("setNClob(String,Reader)");\r
+ }\r
+\r
+ /**\r
+ * Returns <code>this</code> if this class implements the interface\r
+ *\r
+ * @param interfaces a Class defining an interface\r
+ * @return an object that implements the interface\r
+ * @throws java.sql.SQLException if no object if found that implements the\r
+ * interface\r
+ */\r
+ public <T> T unwrap(java.lang.Class<T> interfaces) \r
+ throws SQLException{\r
+ checkStatus();\r
+ try {\r
+ return interfaces.cast(this);\r
+ } catch (ClassCastException cce) {\r
+ throw newSQLException(SQLState.UNABLE_TO_UNWRAP,interfaces);\r
+ }\r
+ }\r
+ \r
+ /**\r
+ * Sets the designated parameter to the given input stream, which will have\r
+ * the specified number of bytes.\r
+ *\r
+ * @param parameterName the name of the first parameter\r
+ * @param x the java input stream which contains the ASCII parameter value\r
+ * @param length the number of bytes in the stream\r
+ * @exception SQLException thrown on failure.\r
+ *\r
+ */\r
+\r
+ public final void setAsciiStream(String parameterName, InputStream x, long length)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+\r
+ /**\r
+ * Sets the designated parameter to the given input stream, which will have\r
+ * the specified number of bytes.\r
+ *\r
+ * @param parameterName the name of the first parameter\r
+ * @param x the java input stream which contains the binary parameter value\r
+ * @param length the number of bytes in the stream\r
+ * @exception SQLException thrown on failure.\r
+ *\r
+ */\r
+\r
+ public final void setBinaryStream(String parameterName, InputStream x, long length)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+\r
+ /**\r
+ * Sets the designated parameter to the given Reader, which will have\r
+ * the specified number of bytes.\r
+ *\r
+ * @param parameterName the name of the first parameter\r
+ * @param x the java Reader which contains the UNICODE value\r
+ * @param length the number of bytes in the stream\r
+ * @exception SQLException thrown on failure.\r
+ *\r
+ */\r
+\r
+ public final void setCharacterStream(String parameterName, Reader x, long length)\r
+ throws SQLException {\r
+ throw Util.notImplemented();\r
+ }\r
+}\r