KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > transaction > TransactionAdminBean


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.transaction;
24
25 import java.rmi.RemoteException JavaDoc;
26 import java.io.Serializable JavaDoc;
27 import javax.transaction.*;
28 import java.util.ArrayList JavaDoc;
29
30 public class TransactionAdminBean implements java.io.Serializable JavaDoc {
31     private Object JavaDoc m_identifier;
32         private String JavaDoc m_id;
33     private String JavaDoc m_status;
34     private long m_elapsedTime;
35         private String JavaDoc m_componentName;
36         private ArrayList JavaDoc<String JavaDoc> m_resourceNames;
37
38     public TransactionAdminBean(Object JavaDoc identifier, String JavaDoc id, String JavaDoc status, long elapsedTime,
39                                     String JavaDoc componentName, ArrayList JavaDoc<String JavaDoc> resourceNames) {
40         m_identifier = identifier;
41                 m_id=id;
42         m_status = status;
43         m_elapsedTime = elapsedTime;
44                 m_componentName = componentName;
45                 m_resourceNames = resourceNames;
46     }
47
48     // getter functions ...
49

50     public Object JavaDoc getIdentifier(){
51         return m_identifier;
52     }
53
54         public String JavaDoc getId(){
55             return m_id;
56         }
57
58     public String JavaDoc getStatus(){
59         return m_status;
60     }
61
62     public long getElapsedTime(){
63         return m_elapsedTime;
64     }
65
66         public String JavaDoc getComponentName() {
67             return m_componentName;
68         }
69
70         public ArrayList JavaDoc<String JavaDoc> getResourceNames() {
71             return m_resourceNames;
72         }
73
74     // setter functions ...
75

76     public void setIdentifier(Object JavaDoc id){
77         m_identifier = id;
78         }
79
80         public void setId(String JavaDoc id){
81             m_id=id;
82         }
83
84     public void setStatus(String JavaDoc sts){
85         m_status = sts;
86     }
87
88     public void setElapsedTime(long time){
89         m_elapsedTime = time;
90     }
91
92         public void setComponentName(String JavaDoc componentName) {
93             m_componentName = componentName;
94         }
95
96         public void setResourceNames(ArrayList JavaDoc<String JavaDoc> resourceNames) {
97             m_resourceNames = resourceNames;
98         }
99      
100 }
101
102
103
104
Popular Tags