JBoss Metadata EJB 7.2.2.Final

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, ExtendableMetaData, IdMetaData, WithDescriptions

public class ContainerTransactionMetaData
extends IdMetaDataImplWithDescriptions
implements ExtendableMetaData

ContainerTransactionMetaData.

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

Constructor Summary
ContainerTransactionMetaData()
          Create a new MethodPermissionMetaData.
 
Method Summary
 void addAny(Object a)
           
 MethodMetaData bestMatch(String methodName, Class[] params, MethodInterfaceType interfaceType, MethodMetaData bestMatch)
          Whether this matches
 ContainerTransactionMetaData clone()
           
<T> List<T>
getAny(Class<T> type)
           
 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, setDescriptions
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
equals, getId, hashCode, 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

addAny

public void addAny(Object a)
Specified by:
addAny in interface ExtendableMetaData

getAny

public <T> List<T> getAny(Class<T> type)
Specified by:
getAny in interface ExtendableMetaData

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

JBoss Metadata EJB 7.2.2.Final

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.