01: /*
02:
03: Derby - Class org.apache.derby.client.net.ResultSetReply
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to You under the Apache License, Version 2.0
09: (the "License"); you may not use this file except in compliance with
10: the License. You may obtain a copy of the License at
11:
12: http://www.apache.org/licenses/LICENSE-2.0
13:
14: Unless required by applicable law or agreed to in writing, software
15: distributed under the License is distributed on an "AS IS" BASIS,
16: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: See the License for the specific language governing permissions and
18: limitations under the License.
19:
20: */
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: public class ResultSetReply extends StatementReply {
29: private ResultSetReplyInterface materialResultSetReply_;
30:
31: public ResultSetReply(Agent agent,
32: ResultSetReplyInterface materialResultSetReply,
33: StatementReplyInterface materialStatementReply,
34: ConnectionReplyInterface materialConnectionReply) {
35: super (agent, materialStatementReply, materialConnectionReply);
36: materialResultSetReply_ = materialResultSetReply;
37: }
38:
39: public void readFetch(ResultSetCallbackInterface resultSet)
40: throws SqlException {
41: materialResultSetReply_.readFetch(resultSet);
42: agent_.checkForChainBreakingException_();
43: }
44:
45: // think about splitting out the position cursor stuff from the fetch stuff
46: public void readScrollableFetch(ResultSetCallbackInterface resultSet)
47: throws SqlException {
48: materialResultSetReply_.readScrollableFetch(resultSet);
49: agent_.checkForChainBreakingException_();
50: }
51:
52: public void readPositioningFetch(
53: ResultSetCallbackInterface resultSet) throws SqlException {
54: materialResultSetReply_.readPositioningFetch(resultSet);
55: agent_.checkForChainBreakingException_();
56: }
57:
58: public void readCursorClose(ResultSetCallbackInterface resultSet)
59: throws SqlException {
60: materialResultSetReply_.readCursorClose(resultSet);
61: agent_.checkForChainBreakingException_();
62: }
63: }
|