Package org.springframework.jdbc.datasource.init

Examples of org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.execute()


        throw new IllegalStateException(String.format("Failed to execute SQL scripts for test context %s: "
            + "supply at least a DataSource or PlatformTransactionManager.", testContext));
      }

      // Execute scripts directly against the DataSource
      populator.execute(dataSource);
    }
    else {
      DataSource dataSourceFromTxMgr = getDataSourceFromTransactionManager(transactionManager);

      // Ensure user configured an appropriate DataSource/TransactionManager pair.
View Full Code Here


      new TransactionTemplate(transactionManager, transactionAttribute).execute(new TransactionCallbackWithoutResult() {

        @Override
        public void doInTransactionWithoutResult(TransactionStatus status) {
          populator.execute(finalDataSource);
        }
      });
    }
  }
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.