Package org.apache.openjpa.persistence.jdbc

Examples of org.apache.openjpa.persistence.jdbc.IsolationLevel


    if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) {
      // Pass custom isolation level on to OpenJPA's JDBCFetchPlan configuration
      FetchPlan fetchPlan = openJpaEntityManager.getFetchPlan();
      if (fetchPlan instanceof JDBCFetchPlan) {
        IsolationLevel isolation = IsolationLevel.fromConnectionConstant(definition.getIsolationLevel());
        ((JDBCFetchPlan) fetchPlan).setIsolation(isolation);
      }
    }

    entityManager.getTransaction().begin();
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.jdbc.IsolationLevel

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.