1 21 22 package org.apache.derby.impl.jdbc; 23 24 import java.io.InputStream ; 25 import java.io.Reader ; 26 import java.sql.RowId ; 27 import java.sql.NClob ; 28 import java.sql.ParameterMetaData ; 29 import java.sql.SQLException ; 30 import java.sql.SQLXML ; 31 import java.sql.Types ; 32 import org.apache.derby.iapi.reference.SQLState; 33 import org.apache.derby.iapi.error.StandardException; 34 35 public class EmbedPreparedStatement40 extends EmbedPreparedStatement30 { 36 37 public EmbedPreparedStatement40(EmbedConnection conn, String sql, boolean forMetaData, 38 int resultSetType, int resultSetConcurrency, int resultSetHoldability, 39 int autoGeneratedKeys, int[] columnIndexes, String [] columnNames) throws SQLException { 40 super(conn, sql, forMetaData, resultSetType, resultSetConcurrency, resultSetHoldability, 41 autoGeneratedKeys, columnIndexes, columnNames); 42 } 43 44 public void setRowId(int parameterIndex, RowId x) throws SQLException { 45 throw Util.notImplemented(); 46 } 47 48 public void setNString(int index, String value) throws SQLException { 49 throw Util.notImplemented(); 50 } 51 52 public void setNCharacterStream(int parameterIndex, Reader value) 53 throws SQLException { 54 throw Util.notImplemented(); 55 } 56 57 public void setNCharacterStream(int index, Reader value, long length) throws SQLException { 58 throw Util.notImplemented(); 59 } 60 61 public void setNClob(int parameterIndex, Reader reader) 62 throws SQLException { 63 throw Util.notImplemented(); 64 } 65 66 public void setNClob(int index, NClob value) throws SQLException { 67 throw Util.notImplemented(); 68 } 69 70 public void setNClob(int parameterIndex, Reader reader, long length) 71 throws SQLException { 72 throw Util.notImplemented(); 73 } 74 75 public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { 76 throw Util.notImplemented(); 77 } 78 79 90 public ParameterMetaData getParameterMetaData() 91 throws SQLException 92 { 93 checkStatus(); 94 return new EmbedParameterMetaData40( 95 getParms(), preparedStatement.getParameterTypes()); 96 } 97 98 109 public boolean isWrapperFor(Class <?> interfaces) throws SQLException { 110 checkStatus(); 111 return interfaces.isInstance(this); 112 } 113 114 122 public <T> T unwrap(java.lang.Class <T> interfaces) 123 throws SQLException { 124 checkStatus(); 125 try { 126 return interfaces.cast(this); 127 } catch (ClassCastException cce) { 128 throw newSQLException(SQLState.UNABLE_TO_UNWRAP,interfaces); 129 } 130 } 131 } 132 133 | Popular Tags |