org.apache.openejb.jee
Class ContainerTransaction

java.lang.Object
  extended by org.apache.openejb.jee.ContainerTransaction
All Implemented Interfaces:
AttributeBinding<TransAttribute>

public class ContainerTransaction
extends java.lang.Object
implements AttributeBinding<TransAttribute>

The container-transactionType specifies how the container must manage transaction scopes for the enterprise bean's method invocations. It defines an optional description, a list of method elements, and a transaction attribute. The transaction attribute is to be applied to all the specified methods.


Field Summary
protected  TextMap description
           
protected  java.lang.String id
           
protected  java.util.List<Method> method
           
protected  TransAttribute transAttribute
           
 
Constructor Summary
ContainerTransaction()
           
ContainerTransaction(TransAttribute transAttribute, Method method)
           
ContainerTransaction(TransAttribute transAttribute, java.lang.String ejbName, java.lang.reflect.Method method)
           
ContainerTransaction(TransAttribute transAttribute, java.lang.String className, java.lang.String ejbName, java.lang.String methodName)
           
 
Method Summary
 TransAttribute getAttribute()
           
 java.lang.String getDescription()
           
 Text[] getDescriptions()
           
 java.lang.String getId()
           
 java.util.List<Method> getMethod()
           
 TransAttribute getTransAttribute()
           
 void setDescriptions(Text[] text)
           
 void setId(java.lang.String value)
           
 void setTransAttribute(TransAttribute value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected java.util.List<Method> method

transAttribute

protected TransAttribute transAttribute

id

protected java.lang.String id

description

protected TextMap description
Constructor Detail

ContainerTransaction

public ContainerTransaction()

ContainerTransaction

public ContainerTransaction(TransAttribute transAttribute,
                            java.lang.String className,
                            java.lang.String ejbName,
                            java.lang.String methodName)

ContainerTransaction

public ContainerTransaction(TransAttribute transAttribute,
                            java.lang.String ejbName,
                            java.lang.reflect.Method method)

ContainerTransaction

public ContainerTransaction(TransAttribute transAttribute,
                            Method method)
Method Detail

getDescriptions

public Text[] getDescriptions()

setDescriptions

public void setDescriptions(Text[] text)

getDescription

public java.lang.String getDescription()

getMethod

public java.util.List<Method> getMethod()
Specified by:
getMethod in interface AttributeBinding<TransAttribute>

getAttribute

public TransAttribute getAttribute()
Specified by:
getAttribute in interface AttributeBinding<TransAttribute>

getTransAttribute

public TransAttribute getTransAttribute()

setTransAttribute

public void setTransAttribute(TransAttribute value)

getId

public java.lang.String getId()

setId

public void setId(java.lang.String value)


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.