Package jodd.jtx.meta

Examples of jodd.jtx.meta.TransactionAnnotationData


          m = type.getMethod(methodName, methodArgTypes);
        } catch (NoSuchMethodException nsmex) {
          throw new ProxettaException(nsmex);
        }

        TransactionAnnotationData txAnn = getTransactionAnnotation(m);
        if (txAnn != null) {
          txMode = new JtxTransactionMode();
          txMode.setPropagationBehaviour(txAnn.getPropagation());
          txMode.setIsolationLevel(txAnn.getIsolation());
          txMode.setReadOnly(txAnn.isReadOnly());
          txMode.setTransactionTimeout(txAnn.getTimeout());
        } else {
          txMode = defaultTransactionMode;
        }
        txmap.put(signature, txMode);
      }
View Full Code Here


  /**
   * Finds TX annotation.
   */
  protected TransactionAnnotationData getTransactionAnnotation(Method method) {
    for (TransactionAnnotation annotationInstance : annotationInstances) {
      TransactionAnnotationData tad = annotationInstance.readAnnotationData(method);
      if (tad != null) {
        return tad;
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of jodd.jtx.meta.TransactionAnnotationData

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.