Examples of DBEnvironment


Examples of org.jtester.module.database.environment.DBEnvironment

   * <br>
   * Starts a new transaction on the transaction manager configured in jTester
   */
  public void startTransaction() {
    try {
      DBEnvironment environment = DBEnvironmentFactory.getCurrentDBEnvironment();
      DataSource dataSource = environment.getDataSource(true);
      PlatformTransactionManager platformTransactionManager = new DataSourceTransactionManager(dataSource);

      setTransaction(platformTransactionManager);
    } catch (UnConfigDataBaseTypeException e) {
      setTransaction(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.