Package oracle.toplink.essentials.sessions

Examples of oracle.toplink.essentials.sessions.UnitOfWork.beginEarlyTransaction()


    if (!definition.isReadOnly() && !this.lazyDatabaseTransaction) {
      // This is the magic bit. As with the existing Spring TopLink integration,
      // begin an early transaction to force TopLink to get a JDBC Connection
      // so that Spring can manage transactions with JDBC as well as TopLink.
      UnitOfWork uow = (UnitOfWork) getSession(entityManager);
      uow.beginEarlyTransaction();
    }
    // Could return the UOW, if there were any advantage in having it later.
    return null;
  }
View Full Code Here


    if (!definition.isReadOnly() && !this.lazyDatabaseTransaction) {
      // This is the magic bit. As with the existing Spring TopLink integration,
      // begin an early transaction to force TopLink to get a JDBC connection
      // so that Spring can manage transactions with JDBC as well as TopLink.
      UnitOfWork uow = (UnitOfWork) getSession(entityManager);
      uow.beginEarlyTransaction();
    }
    // Could return the UOW, if there were any advantage in having it later.
    return null;
  }
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.