KickJava   Java API By Example, From Geeks To Geeks.

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


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: TxItem.java,v 1.2 2005/03/30 16:56:02 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 TxItem implements NameItem {
34
35 // --------------------------------------------------------- Properties variables
36

37     private String JavaDoc name = null;
38     private String JavaDoc date = null;
39     private String JavaDoc transaction = null;
40     private String JavaDoc resource = null;
41     private String JavaDoc state = null;
42
43 // --------------------------------------------------------- Public Methods
44

45     public TxItem(String JavaDoc p_Date, String JavaDoc p_Transaction, String JavaDoc p_Resource, String JavaDoc p_State) {
46         setDate(p_Date);
47         setTransaction(p_Transaction);
48         setResource(p_Resource);
49         setState(p_State);
50     }
51
52 // --------------------------------------------------------- Properties Methods
53

54     public String JavaDoc getName() {
55         return name;
56     }
57
58     public void setName(String JavaDoc name) {
59         this.name = name;
60     }
61
62     public String JavaDoc getDate() {
63         return date;
64     }
65
66     public void setDate(String JavaDoc date) {
67         this.date = date;
68     }
69
70     public String JavaDoc getTransaction() {
71         return transaction;
72     }
73
74     public void setTransaction(String JavaDoc transaction) {
75         this.transaction = transaction;
76     }
77
78     public String JavaDoc getResource() {
79         return resource;
80     }
81
82     public void setResource(String JavaDoc resource) {
83         this.resource = resource;
84     }
85
86     public String JavaDoc getState() {
87         return state;
88     }
89
90     public void setState(String JavaDoc state) {
91         this.state = state;
92     }
93
94 }
Popular Tags