Package javax.ejb

Examples of javax.ejb.TransactionAttribute


* Utilities
*/
public class XaAnnotation {
  public static Annotation create(final TransactionAttributeType type)
  {
    return new TransactionAttribute() {
      public Class annotationType()
      {
  return TransactionAttribute.class;
      }

View Full Code Here


    if (javaClass != null
        && SessionSynchronization.class.isAssignableFrom(javaClass)) {
      _isSessionSynchronization = true;
    }

    TransactionAttribute xaAttr;

    xaAttr = apiMethod.getAnnotation(TransactionAttribute.class);

    if (xaAttr == null) {
      xaAttr = apiClass.getAnnotation(TransactionAttribute.class);
    }

    if (xaAttr == null && implMethod != null) {
      xaAttr = implMethod.getAnnotation(TransactionAttribute.class);
    }

    if (xaAttr == null && beanClass != null) {
      xaAttr = beanClass.getAnnotation(TransactionAttribute.class);
    }

    if (xaAttr != null)
      _transactionType = xaAttr.value();
  }
View Full Code Here

                   AspectFactory<X> next)
  {
    super(beanFactory, next);
   
    AnnotatedType<X> beanType = beanFactory.getBeanType();
    TransactionAttribute xa = beanType.getAnnotation(TransactionAttribute.class);
   
    TransactionManagement xaManagement
      = beanType.getAnnotation(TransactionManagement.class);
   
    if (xa != null)
      _classXa = xa.value();
   
    if (xaManagement != null)
      _classXaManagement = xaManagement.value();
  }
View Full Code Here

    TransactionManagementType xaManagementType = _classXaManagement;
   
    if (xaManagement != null)
      xaManagementType = xaManagement.value();

    TransactionAttribute xa = method.getAnnotation(TransactionAttribute.class);
    TransactionAttributeType xaType = _classXa;
   
    if (xa != null) {
      xaType = xa.value();
    }
    else if (declType != null) {
      xa = declType.getAnnotation(TransactionAttribute.class);
     
      if (xa != null)
        xaType = xa.value();
    }
   
    boolean isBeanManaged = xaManagementType == TransactionManagementType.BEAN;

    if (isBeanManaged)
View Full Code Here

TOP

Related Classes of javax.ejb.TransactionAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.