01: /*
02:
03: Derby - Class org.apache.derby.client.net.StatementReply
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.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(
40: StatementCallbackInterface statement) throws SqlException {
41: materialStatementReply_.readPrepareDescribeOutput(statement);
42: agent_.checkForChainBreakingException_();
43: }
44:
45: public void readExecuteImmediate(
46: StatementCallbackInterface statement) throws SqlException {
47: materialStatementReply_.readExecuteImmediate(statement);
48: agent_.checkForChainBreakingException_();
49: }
50:
51: public void readOpenQuery(StatementCallbackInterface statement)
52: throws SqlException {
53: materialStatementReply_.readOpenQuery(statement);
54: agent_.checkForChainBreakingException_();
55: }
56:
57: public void readExecute(
58: PreparedStatementCallbackInterface preparedStatement)
59: throws SqlException {
60: materialStatementReply_.readExecute(preparedStatement);
61: agent_.checkForChainBreakingException_();
62: }
63:
64: public void readPrepare(StatementCallbackInterface statement)
65: throws SqlException {
66: materialStatementReply_.readPrepare(statement);
67: agent_.checkForChainBreakingException_();
68: }
69:
70: public void readDescribeInput(
71: PreparedStatementCallbackInterface preparedStatement)
72: throws SqlException {
73: materialStatementReply_.readDescribeInput(preparedStatement);
74: agent_.checkForChainBreakingException_();
75: }
76:
77: public void readDescribeOutput(
78: PreparedStatementCallbackInterface preparedStatement)
79: throws SqlException {
80: materialStatementReply_.readDescribeOutput(preparedStatement);
81: agent_.checkForChainBreakingException_();
82: }
83:
84: public void readExecuteCall(StatementCallbackInterface statement)
85: throws SqlException {
86: materialStatementReply_.readExecuteCall(statement);
87: agent_.checkForChainBreakingException_();
88: }
89:
90: public void readSetSpecialRegister(
91: StatementCallbackInterface statement) throws SqlException {
92: materialStatementReply_.readSetSpecialRegister(statement);
93: agent_.checkForChainBreakingException_();
94: }
95: }
|