1 | /* |
2 | |
3 | Derby - Class org.apache.derby.client.net.ConnectionReply |
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.ConnectionCallbackInterface; |
24 | import org.apache.derby.client.am.SqlException; |
25 | |
26 | |
27 | public class ConnectionReply { |
28 | private ConnectionReplyInterface materialConnectionReply_; |
29 | org.apache.derby.client.am.Agent agent_; |
30 | |
31 | ConnectionReply(org.apache.derby.client.am.Agent agent, ConnectionReplyInterface materialConnectionReply) { |
32 | agent_ = agent; |
33 | materialConnectionReply_ = materialConnectionReply; |
34 | } |
35 | |
36 | public void readCommitSubstitute(ConnectionCallbackInterface connection) throws SqlException { |
37 | materialConnectionReply_.readCommitSubstitute(connection); |
38 | agent_.checkForChainBreakingException_(); |
39 | } |
40 | |
41 | public void readLocalCommit(ConnectionCallbackInterface connection) throws SqlException { |
42 | materialConnectionReply_.readLocalCommit(connection); |
43 | agent_.checkForChainBreakingException_(); |
44 | } |
45 | |
46 | public void readLocalRollback(ConnectionCallbackInterface connection) throws SqlException { |
47 | materialConnectionReply_.readLocalRollback(connection); |
48 | agent_.checkForChainBreakingException_(); |
49 | } |
50 | |
51 | public void readLocalXAStart(ConnectionCallbackInterface connection) throws SqlException { |
52 | materialConnectionReply_.readLocalXAStart(connection); |
53 | agent_.checkForChainBreakingException_(); |
54 | } |
55 | |
56 | public void readLocalXACommit(ConnectionCallbackInterface connection) throws SqlException { |
57 | materialConnectionReply_.readLocalXACommit(connection); |
58 | agent_.checkForChainBreakingException_(); |
59 | } |
60 | |
61 | public void readLocalXARollback(ConnectionCallbackInterface connection) throws SqlException { |
62 | materialConnectionReply_.readLocalXARollback(connection); |
63 | agent_.checkForChainBreakingException_(); |
64 | } |
65 | } |