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 ColumnMetaData40 extends ColumnMetaData { 28 32 public ColumnMetaData40(LogWriter logWriter) { 33 super(logWriter); 34 } 35 36 41 public ColumnMetaData40(LogWriter logWriter, int upperBound) { 42 super(logWriter,upperBound); 43 } 44 45 56 public boolean isWrapperFor(Class <?> interfaces) throws SQLException { 57 return interfaces.isInstance(this); 58 } 59 60 68 public <T> T unwrap(java.lang.Class <T> interfaces) 69 throws SQLException { 70 try { 71 return interfaces.cast(this); 72 } catch (ClassCastException cce) { 73 throw new SqlException(null,new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), 74 interfaces).getSQLException(); 75 } 76 } 77 } 78 | Popular Tags |