KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > client > net > StatementReply


1 /*
2
3    Derby - Class org.apache.derby.client.net.StatementReply
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to You under the Apache License, Version 2.0
9    (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.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