Examples of beginStore()


Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.beginStore()

    super.beginTransaction(entityManager, definition);
    OpenJPAEntityManager em = getOpenJPAEntityManager(entityManager);
    if (!definition.isReadOnly()) {
      // Like with TopLink, make sure to start the logic transaction early so that other
      // participants using the connection (such as JdbcTemplate) run in a transaction.
      em.beginStore();
    }
    return new OpenJpaTransactionData(em);
  }

  @Override
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.beginStore()

    entityManager.getTransaction().begin();

    if (!definition.isReadOnly()) {
      // Like with EclipseLink, make sure to start the logic transaction early so that other
      // participants using the connection (such as JdbcTemplate) run in a transaction.
      openJpaEntityManager.beginStore();
    }

    // Custom implementation for OpenJPA savepoint handling
    return new OpenJpaTransactionData(openJpaEntityManager);
  }
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.