Examples of TransactionAttribute


Examples of com.buschmais.cdo.api.Transaction.TransactionAttribute

        return this;
    }

    public CdoUnitBuilder transactionAttribute(String transaction) {
        if (transaction != null) {
            TransactionAttribute mode = TransactionAttribute.valueOf(transaction);
            return transactionAttribute(mode);
        }
        return this;
    }
View Full Code Here

Examples of com.buschmais.cdo.api.TransactionAttribute

                }
            } else {
                validationMode = ValidationMode.AUTO;
            }
            TransactionAttributeType defaultTransactionAttributeType = cdoUnitType.getDefaultTransactionAttribute();
            TransactionAttribute defaultTransactionAttribute;
            if (defaultTransactionAttributeType != null) {
                switch (defaultTransactionAttributeType) {
                    case MANDATORY:
                        defaultTransactionAttribute = TransactionAttribute.MANDATORY;
                        break;
View Full Code Here

Examples of com.buschmais.xo.api.Transaction.TransactionAttribute

        return this;
    }

    public XOUnitBuilder transactionAttribute(String transaction) {
        if (transaction != null) {
            TransactionAttribute mode = TransactionAttribute.valueOf(transaction);
            return transactionAttribute(mode);
        }
        return this;
    }
View Full Code Here

Examples of javax.ejb.TransactionAttribute

    this.eme = eme;
    this.transaction = new UserTransactionSupport(eme);
  }

  @Override public synchronized Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    TransactionAttribute ta = method.getAnnotation(TransactionAttribute.class);
    boolean auto = ta != null && (ta.value() == TransactionAttributeType.REQUIRES_NEW ||
      ta.value() == TransactionAttributeType.REQUIRED || ta.value() == TransactionAttributeType.MANDATORY);
    boolean began = false;
    if (auto && !transaction.isActive()) {
      began = true;
      transaction.begin();
    }
View Full Code Here

Examples of javax.ejb.TransactionAttribute

      ejbClassImpl.addAnnotation(XaAnnotation.createBeanManaged());
    }
    */

    if (tm == null || tm.value() == TransactionManagementType.CONTAINER) {
      TransactionAttribute ann
        = ejbClass.getAnnotation(TransactionAttribute.class);

      if (ann == null) {
        // ejb/1100
        ejbClass.addAnnotation(new TransactionAttributeLiteral(REQUIRED));
View Full Code Here

Examples of javax.ejb.TransactionAttribute

   
    if (!_isContainerTransaction) {
      ejbClassImpl.addAnnotation(new TransactionManagementLiteral(BEAN));
    }

    TransactionAttribute ann
      = ejbClass.getAnnotation(TransactionAttribute.class);

    if (ann == null) {
      // ejb/1100
      ejbClassImpl.addAnnotation(new TransactionAttributeLiteral(REQUIRED));
View Full Code Here

Examples of javax.ejb.TransactionAttribute

            setRemoteWrapper(new ApiClass(ifs[0]));
        }
        */
      }

      TransactionAttribute xa = type.getAnnotation(TransactionAttribute.class);
      if (xa != null) {
        MethodSignature sig = new MethodSignature();
        sig.setMethodName("*");

        EjbMethodPattern<X> pattern = createMethod(sig);
View Full Code Here

Examples of javax.ejb.TransactionAttribute

  private void configureXA(AnnotatedMethod<?> apiMethod)
  {
    if (_transactionType == null)
      return;

    Annotation ann = new TransactionAttribute() {
        public Class annotationType() { return TransactionAttribute.class; }
        public TransactionAttributeType value() { return _transactionType; }
      };

    ((AnnotatedMethodImpl<?>) apiMethod).addAnnotation(ann);
View Full Code Here

Examples of javax.ejb.TransactionAttribute

    _javaMethod = method.getJavaMember();
  }
 
  public static ConfigProgram create(AnnotatedMethod<?> method)
  {
    TransactionAttribute xaAttr
      = method.getAnnotation(TransactionAttribute.class);
   
    TransactionAttribute xaClassAttr
      = method.getDeclaringType().getAnnotation(TransactionAttribute.class);
   
    TransactionAttributeType xaType = null;
   
    if (xaClassAttr != null)
      xaType = xaClassAttr.value();
   
    if (xaAttr != null)
      xaType = xaAttr.value();
   
    if (xaType == null)
View Full Code Here

Examples of javax.ejb.TransactionAttribute

    // XXX: 4.0.7
    for (AspectGenerator<X> bizMethod : getMethods()) {
      AnnotatedMethod<?> method = bizMethod.getMethod();
     
      TransactionAttribute xa;
     
      xa = method.getAnnotation(TransactionAttribute.class);
     
      if (xa == null)
        xa = method.getDeclaringType().getAnnotation(TransactionAttribute.class);
     
      if (xa != null && REQUIRED.equals(xa.value())) {
        addXaMethods(out, method.getJavaMember());
      }
    }

    out.popDepth();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.