Examples of DsWork


Examples of ch.inftec.ju.db.DsWork

    // Make sure we have a transaction when accessing entity manager meta data
    final DbType dbType = this.emUtil.getDbType();
    final String metaDataUserName = this.emUtil.getMetaDataUserName();
    this.tx.commit(); // We must not be within a managed transaction when performing Liquibase work...
   
    this.emUtil.doWork(new DsWork() {
      @Override
      public void execute(DataSource ds) {
        try (Connection conn = ds.getConnection()) {
          JdbcConnection jdbcConn = new JdbcConnection(conn);
         
View Full Code Here

Examples of ch.inftec.ju.db.DsWork

  /**
   * Runs Flyway migration scripts.
   * @param locations Locations containing scripts in Flyway structure (e.g. db/migration).
   */
  public void runFlywayMigration(final String... locations) {
    this.emUtil.doWork(new DsWork() {
      @Override
      public void execute(DataSource ds) {
        Flyway flyway = new Flyway();
        flyway.setDataSource(ds);
        flyway.setLocations(locations);
View Full Code Here

Examples of ch.inftec.ju.db.DsWork

   * Clears the DB Schema.
   * <p>
   * Uses Flyway functionality.
   */
  public void clearSchema() {
    this.emUtil.doWork(new DsWork() {
      @Override
      public void execute(DataSource ds) {
        Flyway flyway = new Flyway();
        flyway.setDataSource(ds);
        flyway.clean(); // FIXME: Try Liquibase.dropAll()
View Full Code Here

Examples of ch.inftec.ju.db.DsWork

  /**
   * Runs Flyway migration scripts.
   * @param locations Locations containing scripts in Flyway structure (e.g. db/migration).
   */
  public void runFlywayMigration(final String... locations) {
    this.connUtil.doWork(new DsWork() {
      @Override
      public void execute(DataSource ds) {
        Flyway flyway = new Flyway();
        flyway.setDataSource(ds);
        flyway.setLocations(locations);
View Full Code Here

Examples of ch.inftec.ju.db.DsWork

   * Clears the DB Schema.
   * <p>
   * Uses Flyway functionality.
   */
  public void clearSchema() {
    this.connUtil.doWork(new DsWork() {
      @Override
      public void execute(DataSource ds) {
        Flyway flyway = new Flyway();
        flyway.setDataSource(ds);
        flyway.clean(); // FIXME: Try Liquibase.dropAll()
View Full Code Here

Examples of ch.inftec.ju.db.DsWork

  /**
   * Runs Flyway migration scripts.
   * @param locations Locations containing scripts in Flyway structure (e.g. db/migration).
   */
  public void runFlywayMigration(final String... locations) {
    this.connUtil.doWork(new DsWork() {
      @Override
      public void execute(DataSource ds) {
        Flyway flyway = new Flyway();
        flyway.setDataSource(ds);
        flyway.setLocations(locations);
View Full Code Here

Examples of ch.inftec.ju.db.DsWork

   * Clears the DB Schema.
   * <p>
   * Uses Flyway functionality.
   */
  public void clearSchema() {
    this.connUtil.doWork(new DsWork() {
      @Override
      public void execute(DataSource ds) {
        Flyway flyway = new Flyway();
        flyway.setDataSource(ds);
        flyway.clean(); // FIXME: Try Liquibase.dropAll()
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.