001: /*
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: TxXaresource.java 6487 2005-03-30 17:20:15Z tonyortiz $
023: * --------------------------------------------------------------------------
024: */
025:
026: package org.objectweb.jonas.webapp.jonasadmin.service.jtm;
027:
028: import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
029:
030: /**
031: * @author Tony Ortiz
032: */
033: public class TxXaresource implements NameItem {
034:
035: // --------------------------------------------------------- Properties variables
036:
037: private String name = null;
038: private String sindex = null;
039: private String resmgr = null;
040: private String xares = null;
041: private String fullxid = null;
042: private String xid = null;
043: private String xidstate = null;
044: private String objectName = null;
045:
046: // --------------------------------------------------------- Public Methods
047:
048: public TxXaresource(String p_Sindex, String p_Resmgr,
049: String p_Xares, String p_FullXid, String p_Xid,
050: String p_Xidstate) {
051:
052: if (p_Sindex == null) {
053: setSindex(p_Resmgr + '\n' + p_Xares + '\n' + p_FullXid
054: + '\n' + p_Xidstate);
055: } else {
056: setSindex(p_Sindex);
057: }
058:
059: setResmgr(p_Resmgr);
060: setXares(p_Xares);
061: setFullxid(p_FullXid);
062: setXid(p_Xid);
063: setXidstate(p_Xidstate);
064: }
065:
066: // --------------------------------------------------------- Properties Methods
067: public String getSindex() {
068: return sindex;
069: }
070:
071: public void setSindex(String sindex) {
072: this .sindex = sindex;
073: }
074:
075: public String getName() {
076: return name;
077: }
078:
079: public void setName(String name) {
080: this .name = name;
081: }
082:
083: public String getResmgr() {
084: return resmgr;
085: }
086:
087: public void setResmgr(String resmgr) {
088: this .resmgr = resmgr;
089: }
090:
091: public String getXares() {
092: return xares;
093: }
094:
095: public void setXares(String xares) {
096: this .xares = xares;
097: }
098:
099: public String getFullxid() {
100: return fullxid;
101: }
102:
103: public void setFullxid(String fullxid) {
104: this .fullxid = fullxid;
105: }
106:
107: public String getXid() {
108: return xid;
109: }
110:
111: public void setXid(String xid) {
112: this .xid = xid;
113: }
114:
115: public String getXidstate() {
116: return xidstate;
117: }
118:
119: public void setXidstate(String xidstate) {
120: this.xidstate = xidstate;
121: }
122:
123: }
|