Package jodd.jtx

Examples of jodd.jtx.JtxIsolationLevel


  protected void continueTx(JtxTransaction sourceTx, JtxTransactionMode destMode) {
    if (validateExistingTransaction == false) {
      return;
    }
    JtxTransactionMode sourceMode = sourceTx.getTransactionMode();
    JtxIsolationLevel destIsolationLevel = destMode.getIsolationLevel();
    if (destIsolationLevel != ISOLATION_DEFAULT) {
      JtxIsolationLevel currentIsolationLevel = sourceMode.getIsolationLevel();
      if (currentIsolationLevel != destIsolationLevel) {
        throw new JtxException("Participating TX specifies isolation level: " + destIsolationLevel +
            " which is incompatible with existing TX: " + currentIsolationLevel);
      }
    }
View Full Code Here

TOP

Related Classes of jodd.jtx.JtxIsolationLevel

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.