Package com.skyline.energy.annotation

Examples of com.skyline.energy.annotation.Transaction


  private Class<? extends Throwable> rollback;
  private boolean needTransaction;

  public TransactionDefinition(Object target, Method actualMethod) {
    Annotation annotation = actualMethod.getAnnotation(Transaction.class);
    Transaction tx = (Transaction) annotation;
    if(tx != null) {
      this.isolationLevel = tx.isolation();
      this.readOnly = tx.readonly();
      this.rollback = tx.rollback();
      needTransaction = true;
    } else {
      needTransaction = false;
    }
  }
View Full Code Here

TOP

Related Classes of com.skyline.energy.annotation.Transaction

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.