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 30 31 public class Statement40 extends Statement{ 32 39 public Statement40(Agent agent, Connection connection) throws SqlException { 40 super(agent,connection); 41 } 42 43 55 public Statement40(Agent agent, Connection connection, int type, 56 int concurrency, int holdability, 57 int autoGeneratedKeys, String [] columnNames) 58 throws SqlException { 59 super(agent,connection,type,concurrency,holdability,autoGeneratedKeys, 60 columnNames); 61 } 62 63 71 public <T> T unwrap(java.lang.Class <T> interfaces) 72 throws SQLException { 73 try { 74 checkForClosedStatement(); 75 return interfaces.cast(this); 76 } catch (ClassCastException cce) { 77 throw new SqlException(null,new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), 78 interfaces).getSQLException(); 79 } catch (SqlException se) { 80 throw se.getSQLException(); 81 } 82 } 83 } 84 | Popular Tags |