org.jboss.metadata.ejb.spec
Class ContainerTransactionMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
          extended by org.jboss.metadata.ejb.spec.ContainerTransactionMetaData
All Implemented Interfaces:
Serializable, Cloneable, IdMetaData

public class ContainerTransactionMetaData
extends IdMetaDataImplWithDescriptions

ContainerTransactionMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
ContainerTransactionMetaData()
          Create a new MethodPermissionMetaData.
 
Method Summary
 MethodMetaData bestMatch(String methodName, Class[] params, MethodInterfaceType interfaceType, MethodMetaData bestMatch)
          Whether this matches
 ContainerTransactionMetaData clone()
           
 ContainerTransactionMetaData getContainerTransactionsByEjbName(String ejbName)
          Get the container transaction for an ejb
 MethodsMetaData getMethods()
          Get the methods.
 javax.ejb.TransactionAttributeType getTransAttribute()
          Get the transactionAttribute.
 boolean matches(String methodName, Class[] params, MethodInterfaceType interfaceType)
          Whether this matches
 void setMethods(MethodsMetaData methods)
          Set the methods.
 void setTransAttribute(javax.ejb.TransactionAttributeType transactionAttribute)
          Set the transactionAttribute.
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
getDescriptions, merge, setDescriptions
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
equals, getId, hashCode, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerTransactionMetaData

public ContainerTransactionMetaData()
Create a new MethodPermissionMetaData.

Method Detail

getMethods

public MethodsMetaData getMethods()
Get the methods.

Returns:
the methods.

setMethods

public void setMethods(MethodsMetaData methods)
Set the methods.

Parameters:
methods - the methods.
Throws:
IllegalArgumentException - for a null methods

getTransAttribute

public javax.ejb.TransactionAttributeType getTransAttribute()
Get the transactionAttribute.

Returns:
the transactionAttribute.

setTransAttribute

public void setTransAttribute(javax.ejb.TransactionAttributeType transactionAttribute)
Set the transactionAttribute.

Parameters:
transactionAttribute - the transactionAttribute.
Throws:
IllegalArgumentException - for a null transactionAttribute

getContainerTransactionsByEjbName

public ContainerTransactionMetaData getContainerTransactionsByEjbName(String ejbName)
Get the container transaction for an ejb

Parameters:
ejbName - the ejb name
Returns:
the container transactions or null for no result
Throws:
IllegalArgumentException - for a null ejb name

matches

public boolean matches(String methodName,
                       Class[] params,
                       MethodInterfaceType interfaceType)
Whether this matches

Parameters:
methodName - the method name
params - the parameters
interfaceType - the interface type
Returns:
true when it matches

bestMatch

public MethodMetaData bestMatch(String methodName,
                                Class[] params,
                                MethodInterfaceType interfaceType,
                                MethodMetaData bestMatch)
Whether this matches

Parameters:
methodName - the method name
params - the parameters
interfaceType - the interface type
bestMatch - the previous best match
Returns:
the best match

clone

public ContainerTransactionMetaData clone()
Overrides:
clone in class IdMetaDataImpl


Copyright © 2009 JBoss Inc.. All Rights Reserved.