Package ch.inftec.ju.db

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


  /**
   * 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

   * 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

  /**
   * 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

   * 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

  /**
   * 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

   * 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

Related Classes of ch.inftec.ju.db.DsWork

Copyright © 2018 www.massapicom. 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.