KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > dd > ContainerTransaction


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.ejb3.dd;
8
9 import java.util.ArrayList JavaDoc;
10 import java.util.List JavaDoc;
11
12 /**
13  * Represents an <container-transaction> element of the ejb-jar.xml deployment descriptor
14  * for the 1.4 schema
15  *
16  * @version <tt>$Revision: 1.3.2.1 $</tt>
17  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
18  */

19 public class ContainerTransaction
20 {
21
22    private String JavaDoc transAttribute;
23
24    private Method method;
25
26    public String JavaDoc getTransAttribute()
27    {
28       return transAttribute;
29    }
30
31    public void setTransAttribute(String JavaDoc transAttribute)
32    {
33       this.transAttribute = transAttribute;
34    }
35
36    public Method getMethod()
37    {
38       return method;
39    }
40
41    public void setMethod(Method method)
42    {
43       this.method = method;
44    }
45
46    public String JavaDoc toString()
47    {
48       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
49       sb.append("[");
50       sb.append("ejbRelationName=").append(transAttribute);
51       sb.append("]");
52       return sb.toString();
53    }
54 }
55
Popular Tags