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