1 | /* |
2 | |
3 | Derby - Class org.apache.derby.client.net.ResultSetReply |
4 | |
5 | Copyright (c) 2001, 2005 The Apache Software Foundation or its licensors, where applicable. |
6 | |
7 | Licensed under the Apache License, Version 2.0 (the "License"); |
8 | you may not use this file except in compliance with the License. |
9 | You may obtain a copy of the License at |
10 | |
11 | http://www.apache.org/licenses/LICENSE-2.0 |
12 | |
13 | Unless required by applicable law or agreed to in writing, software |
14 | distributed under the License is distributed on an "AS IS" BASIS, |
15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | See the License for the specific language governing permissions and |
17 | limitations under the License. |
18 | |
19 | */ |
20 | |
21 | package org.apache.derby.client.net; |
22 | |
23 | import org.apache.derby.client.am.Agent; |
24 | import org.apache.derby.client.am.ResultSetCallbackInterface; |
25 | import org.apache.derby.client.am.SqlException; |
26 | |
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) throws SqlException { |
40 | materialResultSetReply_.readFetch(resultSet); |
41 | agent_.checkForChainBreakingException_(); |
42 | } |
43 | |
44 | |
45 | // think about splitting out the position cursor stuff from the fetch stuff |
46 | public void readScrollableFetch(ResultSetCallbackInterface resultSet) throws SqlException { |
47 | materialResultSetReply_.readScrollableFetch(resultSet); |
48 | agent_.checkForChainBreakingException_(); |
49 | } |
50 | |
51 | public void readPositioningFetch(ResultSetCallbackInterface resultSet) throws SqlException { |
52 | materialResultSetReply_.readPositioningFetch(resultSet); |
53 | agent_.checkForChainBreakingException_(); |
54 | } |
55 | |
56 | public void readCursorClose(ResultSetCallbackInterface resultSet) throws SqlException { |
57 | materialResultSetReply_.readCursorClose(resultSet); |
58 | agent_.checkForChainBreakingException_(); |
59 | } |
60 | } |