1 21 22 package org.apache.derby.client.am; 23 24 import java.sql.RowId ; 25 import java.sql.NClob ; 26 import java.sql.SQLException ; 27 import java.sql.SQLXML ; 28 import java.io.Reader ; 29 import java.io.InputStream ; 30 import org.apache.derby.client.ClientPooledConnection; 31 import org.apache.derby.client.am.SqlException; 32 import org.apache.derby.client.am.ClientMessageId; 33 import org.apache.derby.shared.common.reference.SQLState; 34 35 public class PreparedStatement40 extends org.apache.derby.client.am.PreparedStatement{ 36 37 58 public PreparedStatement40(Agent agent, 59 Connection connection, 60 String sql, 61 Section section,ClientPooledConnection cpc) throws SqlException { 62 super(agent, connection,sql,section,cpc); 63 } 64 65 92 public PreparedStatement40(Agent agent, 93 Connection connection, 94 String sql, 95 int type, int concurrency, int holdability, int autoGeneratedKeys, String [] columnNames,ClientPooledConnection cpc) throws SqlException { 96 super(agent, connection, sql, type, concurrency, holdability, autoGeneratedKeys, columnNames, cpc); 97 } 98 99 100 public void setRowId(int parameterIndex, RowId x) throws SQLException { 101 throw SQLExceptionFactory.notImplemented ("setRowId (int, RowId)"); 102 } 103 104 public void setNString(int index, String value) throws SQLException { 105 throw SQLExceptionFactory.notImplemented ("setNString (int, String)"); 106 } 107 108 public void setNCharacterStream(int parameterIndex, Reader value) 109 throws SQLException { 110 throw SQLExceptionFactory.notImplemented("setNCharacterStream" + 111 "(int,Reader)"); 112 } 113 114 public void setNCharacterStream(int index, Reader value, long length) 115 throws SQLException { 116 throw SQLExceptionFactory.notImplemented ("setNCharacterStream " + 117 "(int,Reader,long)"); 118 } 119 120 public void setNClob(int parameterIndex, Reader reader) 121 throws SQLException { 122 throw SQLExceptionFactory.notImplemented("setNClob(int,Reader)"); 123 } 124 125 public void setNClob(int index, NClob value) throws SQLException { 126 throw SQLExceptionFactory.notImplemented ("setNClob (int, NClob)"); 127 } 128 129 public void setNClob(int parameterIndex, Reader reader, long length) 130 throws SQLException { 131 throw SQLExceptionFactory.notImplemented ("setNClob (int, Reader, long)"); 132 } 133 134 public void setSQLXML(int parameterIndex, SQLXML xmlObject) 135 throws SQLException { 136 throw SQLExceptionFactory.notImplemented ("setSQLXML (int, SQLXML)"); 137 } 138 139 147 public <T> T unwrap(java.lang.Class <T> interfaces) 148 throws SQLException { 149 try { 150 checkForClosedStatement(); 151 return interfaces.cast(this); 152 } catch (ClassCastException cce) { 153 throw new SqlException(null,new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), 154 interfaces).getSQLException(); 155 } catch (SqlException se) { 156 throw se.getSQLException(); 157 } 158 } 159 } 160 | Popular Tags |