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.ResultSetCallbackInterface; 26 import org.apache.derby.client.am.SqlException; 27 28 29 public class ResultSetReply extends StatementReply { 30 private ResultSetReplyInterface materialResultSetReply_; 31 32 public ResultSetReply(Agent agent, 33 ResultSetReplyInterface materialResultSetReply, 34 StatementReplyInterface materialStatementReply, 35 ConnectionReplyInterface materialConnectionReply) { 36 super(agent, materialStatementReply, materialConnectionReply); 37 materialResultSetReply_ = materialResultSetReply; 38 } 39 40 public void readFetch(ResultSetCallbackInterface resultSet) throws SqlException { 41 materialResultSetReply_.readFetch(resultSet); 42 agent_.checkForChainBreakingException_(); 43 } 44 45 46 public void readScrollableFetch(ResultSetCallbackInterface resultSet) throws SqlException { 48 materialResultSetReply_.readScrollableFetch(resultSet); 49 agent_.checkForChainBreakingException_(); 50 } 51 52 public void readPositioningFetch(ResultSetCallbackInterface resultSet) throws SqlException { 53 materialResultSetReply_.readPositioningFetch(resultSet); 54 agent_.checkForChainBreakingException_(); 55 } 56 57 public void readCursorClose(ResultSetCallbackInterface resultSet) throws SqlException { 58 materialResultSetReply_.readCursorClose(resultSet); 59 agent_.checkForChainBreakingException_(); 60 } 61 } 62 | Popular Tags |