1 21 22 package org.apache.derby.client.am; 23 24 import java.sql.SQLException ; 25 import org.apache.derby.shared.common.reference.SQLState; 26 27 public class ParameterMetaData40 extends ParameterMetaData { 28 29 35 public ParameterMetaData40(ColumnMetaData columnMetaData) { 36 super(columnMetaData); 37 } 38 39 50 public boolean isWrapperFor(Class <?> interfaces) throws SQLException { 51 return interfaces.isInstance(this); 52 } 53 54 62 public <T> T unwrap(java.lang.Class <T> interfaces) 63 throws SQLException { 64 try { 65 return interfaces.cast(this); 66 } catch (ClassCastException cce) { 67 throw new SqlException(null,new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), 68 interfaces).getSQLException(); 69 } 70 } 71 } 72 | Popular Tags |