01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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: TxItem.java 6487 2005-03-30 17:20:15Z tonyortiz $
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 TxItem implements NameItem {
34:
35: // --------------------------------------------------------- Properties variables
36:
37: private String name = null;
38: private String date = null;
39: private String transaction = null;
40: private String resource = null;
41: private String state = null;
42:
43: // --------------------------------------------------------- Public Methods
44:
45: public TxItem(String p_Date, String p_Transaction,
46: String p_Resource, String p_State) {
47: setDate(p_Date);
48: setTransaction(p_Transaction);
49: setResource(p_Resource);
50: setState(p_State);
51: }
52:
53: // --------------------------------------------------------- Properties Methods
54:
55: public String getName() {
56: return name;
57: }
58:
59: public void setName(String name) {
60: this .name = name;
61: }
62:
63: public String getDate() {
64: return date;
65: }
66:
67: public void setDate(String date) {
68: this .date = date;
69: }
70:
71: public String getTransaction() {
72: return transaction;
73: }
74:
75: public void setTransaction(String transaction) {
76: this .transaction = transaction;
77: }
78:
79: public String getResource() {
80: return resource;
81: }
82:
83: public void setResource(String resource) {
84: this .resource = resource;
85: }
86:
87: public String getState() {
88: return state;
89: }
90:
91: public void setState(String state) {
92: this.state = state;
93: }
94:
95: }
|