1 21 22 package org.apache.derby.client.net; 23 24 import org.apache.derby.client.am.Agent; 25 import org.apache.derby.client.am.PreparedStatementCallbackInterface; 26 import org.apache.derby.client.am.SqlException; 27 import org.apache.derby.client.am.StatementCallbackInterface; 28 29 public class StatementReply extends ConnectionReply { 30 private StatementReplyInterface materialStatementReply_; 31 32 StatementReply(Agent agent, 33 StatementReplyInterface materialStatementReply, 34 ConnectionReplyInterface materialConnectionReply) { 35 super(agent, materialConnectionReply); 36 materialStatementReply_ = materialStatementReply; 37 } 38 39 public void readPrepareDescribeOutput(StatementCallbackInterface statement) throws SqlException { 40 materialStatementReply_.readPrepareDescribeOutput(statement); 41 agent_.checkForChainBreakingException_(); 42 } 43 44 public void readExecuteImmediate(StatementCallbackInterface statement) throws SqlException { 45 materialStatementReply_.readExecuteImmediate(statement); 46 agent_.checkForChainBreakingException_(); 47 } 48 49 public void readOpenQuery(StatementCallbackInterface statement) throws SqlException { 50 materialStatementReply_.readOpenQuery(statement); 51 agent_.checkForChainBreakingException_(); 52 } 53 54 public void readExecute(PreparedStatementCallbackInterface preparedStatement) throws SqlException { 55 materialStatementReply_.readExecute(preparedStatement); 56 agent_.checkForChainBreakingException_(); 57 } 58 59 public void readPrepare(StatementCallbackInterface statement) throws SqlException { 60 materialStatementReply_.readPrepare(statement); 61 agent_.checkForChainBreakingException_(); 62 } 63 64 public void readDescribeInput(PreparedStatementCallbackInterface preparedStatement) throws SqlException { 65 materialStatementReply_.readDescribeInput(preparedStatement); 66 agent_.checkForChainBreakingException_(); 67 } 68 69 public void readDescribeOutput(PreparedStatementCallbackInterface preparedStatement) throws SqlException { 70 materialStatementReply_.readDescribeOutput(preparedStatement); 71 agent_.checkForChainBreakingException_(); 72 } 73 74 public void readExecuteCall(StatementCallbackInterface statement) throws SqlException { 75 materialStatementReply_.readExecuteCall(statement); 76 agent_.checkForChainBreakingException_(); 77 } 78 79 80 public void readSetSpecialRegister(StatementCallbackInterface statement) throws SqlException { 81 materialStatementReply_.readSetSpecialRegister(statement); 82 agent_.checkForChainBreakingException_(); 83 } 84 } 85 | Popular Tags |