1 | /* |
2 | |
3 | Derby - Class org.apache.derby.client.net.NetXACallInfo |
4 | |
5 | Copyright (c) 2002, 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 | package org.apache.derby.client.net; |
21 | |
22 | import javax.transaction.xa.Xid; |
23 | |
24 | /** |
25 | * <p>Title: dnc Project</p> <p>Description: </p> |
26 | * |
27 | * @version 1.0 |
28 | */ |
29 | |
30 | public class NetIndoubtTransaction { |
31 | |
32 | Xid xid_; |
33 | byte[] uowid_; |
34 | byte[] cSyncLog_; |
35 | byte[] pSyncLog_; |
36 | String ipaddr_; |
37 | int port_; |
38 | |
39 | protected NetIndoubtTransaction(Xid xid, |
40 | byte[] uowid, |
41 | byte[] cSyncLog, |
42 | byte[] pSyncLog, |
43 | String ipaddr, |
44 | int port) { |
45 | xid_ = xid; |
46 | uowid_ = uowid; |
47 | cSyncLog_ = cSyncLog; |
48 | pSyncLog_ = pSyncLog; |
49 | ipaddr_ = ipaddr; |
50 | port_ = port; |
51 | } |
52 | |
53 | protected Xid getXid() { |
54 | return xid_; |
55 | } |
56 | |
57 | protected byte[] getUOWID() { |
58 | return uowid_; |
59 | } |
60 | |
61 | protected byte[] getCSyncLog() { |
62 | return cSyncLog_; |
63 | } |
64 | |
65 | protected byte[] getPSyncLog() { |
66 | return pSyncLog_; |
67 | } |
68 | |
69 | protected String getIpAddr() { |
70 | return ipaddr_; |
71 | } |
72 | |
73 | protected int getPort() { |
74 | return port_; |
75 | } |
76 | } |