KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > service > jtm > TxXaresource


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: TxXaresource.java,v 1.1 2005/03/30 17:10:38 tonyortiz Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.service.jtm;
27
28 import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
29
30 /**
31  * @author Tony Ortiz
32  */

33 public class TxXaresource implements NameItem {
34
35 // --------------------------------------------------------- Properties variables
36

37     private String JavaDoc name = null;
38     private String JavaDoc sindex = null;
39     private String JavaDoc resmgr = null;
40     private String JavaDoc xares = null;
41     private String JavaDoc fullxid = null;
42     private String JavaDoc xid = null;
43     private String JavaDoc xidstate = null;
44     private String JavaDoc objectName = null;
45
46 // --------------------------------------------------------- Public Methods
47

48     public TxXaresource(String JavaDoc p_Sindex, String JavaDoc p_Resmgr, String JavaDoc p_Xares, String JavaDoc p_FullXid, String JavaDoc p_Xid, String JavaDoc p_Xidstate) {
49
50         if (p_Sindex == null) {
51             setSindex (p_Resmgr + '\n' + p_Xares + '\n' + p_FullXid + '\n' + p_Xidstate);
52         } else {
53             setSindex(p_Sindex);
54         }
55         
56         setResmgr(p_Resmgr);
57         setXares(p_Xares);
58         setFullxid(p_FullXid);
59         setXid(p_Xid);
60         setXidstate(p_Xidstate);
61     }
62
63 // --------------------------------------------------------- Properties Methods
64
public String JavaDoc getSindex() {
65         return sindex;
66     }
67
68     public void setSindex(String JavaDoc sindex) {
69         this.sindex = sindex;
70     }
71     
72     public String JavaDoc getName() {
73         return name;
74     }
75
76     public void setName(String JavaDoc name) {
77         this.name = name;
78     }
79
80     public String JavaDoc getResmgr() {
81         return resmgr;
82     }
83
84     public void setResmgr(String JavaDoc resmgr) {
85         this.resmgr = resmgr;
86     }
87
88     public String JavaDoc getXares() {
89         return xares;
90     }
91
92     public void setXares(String JavaDoc xares) {
93         this.xares = xares;
94     }
95
96     public String JavaDoc getFullxid() {
97         return fullxid;
98     }
99
100     public void setFullxid(String JavaDoc fullxid) {
101         this.fullxid = fullxid;
102     }
103
104     public String JavaDoc getXid() {
105         return xid;
106     }
107
108     public void setXid(String JavaDoc xid) {
109         this.xid = xid;
110     }
111
112     public String JavaDoc getXidstate() {
113         return xidstate;
114     }
115
116     public void setXidstate(String JavaDoc xidstate) {
117         this.xidstate = xidstate;
118     }
119
120 }
Popular Tags