org.eclipse.jst.j2ee.ejb
Interface MethodTransaction

All Superinterfaces:
J2EEEObject

public interface MethodTransaction
extends J2EEEObject

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

Since:
1.0

Method Summary
 AssemblyDescriptor getAssemblyDescriptor()
           
 java.lang.String getDescription()
           
 EList getDescriptions()
          Returns the value of the 'Descriptions' containment reference list.
 EList getMethodElements()
           
 java.util.List getMethodElements(EnterpriseBean anEJB)
          Return a List of MethodElements that point to
 MethodElement getMostSpecificMethodElement(Method aMethod)
           
 TransactionAttributeType getTransactionAttribute()
           
 boolean isEquivalent(MethodTransaction anotherMethodTransaction)
          Return true if the transaction attributes are the same.
 boolean isSetTransactionAttribute()
          Returns whether the value of the 'Transaction Attribute' attribute is set
 void setAssemblyDescriptor(AssemblyDescriptor value)
           
 void setDescription(java.lang.String value)
           
 void setTransactionAttribute(TransactionAttributeType value)
          Sets the value of the 'Transaction Attribute' attribute
 void unsetTransactionAttribute()
          Unsets the value of the 'Transaction Attribute' attribute
 

Method Detail

getMethodElements

public java.util.List getMethodElements(EnterpriseBean anEJB)
Return a List of MethodElements that point to


getMostSpecificMethodElement

public MethodElement getMostSpecificMethodElement(Method aMethod)

isEquivalent

public boolean isEquivalent(MethodTransaction anotherMethodTransaction)
Return true if the transaction attributes are the same.


getTransactionAttribute

public TransactionAttributeType getTransactionAttribute()
Returns:
The value of the TransactionAttribute attribute The trans-attribute element specifies how the container must manage the transaction boundaries when delegating a method invocation to an enterprise bean's business method.

setTransactionAttribute

public void setTransactionAttribute(TransactionAttributeType value)
Sets the value of the 'Transaction Attribute' attribute.

Parameters:
value - the new value of the 'Transaction Attribute' attribute.
See Also:
TransactionAttributeType, isSetTransactionAttribute(), unsetTransactionAttribute(), getTransactionAttribute()

unsetTransactionAttribute

public void unsetTransactionAttribute()
Unsets the value of the 'Transaction Attribute' attribute.

See Also:
isSetTransactionAttribute(), getTransactionAttribute(), setTransactionAttribute(TransactionAttributeType)

isSetTransactionAttribute

public boolean isSetTransactionAttribute()
Returns whether the value of the 'Transaction Attribute' attribute is set.

Returns:
whether the value of the 'Transaction Attribute' attribute is set.
See Also:
unsetTransactionAttribute(), getTransactionAttribute(), setTransactionAttribute(TransactionAttributeType)

getDescription

public java.lang.String getDescription()
Returns:
The value of the Description attribute The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.

setDescription

public void setDescription(java.lang.String value)
Parameters:
value - The new value of the Description attribute

getAssemblyDescriptor

public AssemblyDescriptor getAssemblyDescriptor()
Returns:
The AssemblyDescriptor reference

setAssemblyDescriptor

public void setAssemblyDescriptor(AssemblyDescriptor value)

getMethodElements

public EList getMethodElements()
Returns:
The list of MethodElements references

getDescriptions

public EList getDescriptions()
Returns the value of the 'Descriptions' containment reference list. The list contents are of type Description.

If the meaning of the 'Descriptions' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Descriptions' containment reference list.
See Also:
EjbPackage.getMethodTransaction_Descriptions()