Package org.jtester.module.database.environment

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


    DBEnvironment environment = workingEnvironment();
    return new ExecuteProcedureFixture(environment, statement);
  }

  public Fixture executeProcedureExpectException(String statement) {
    DBEnvironment environment = workingEnvironment();
    return new ExecuteProcedureFixture(environment, statement, true);
  }
View Full Code Here


    DBEnvironment environment = workingEnvironment();
    return new ExecuteProcedureFixture(environment, statement, true);
  }

  public Fixture executeProcedureExpectException(String statement, int code) {
    DBEnvironment environment = workingEnvironment();
    return new ExecuteProcedureFixture(environment, statement, code);
  }
View Full Code Here

    DBEnvironment environment = workingEnvironment();
    return new ExecuteProcedureFixture(environment, statement, code);
  }

  public Fixture insert(String tableName) {
    DBEnvironment environment = workingEnvironment();
    return new InsertFixture(environment, tableName);
  }
View Full Code Here

    DBEnvironment environment = workingEnvironment();
    return new InsertFixture(environment, tableName);
  }

  public Fixture update(String tableName) {
    DBEnvironment environment = workingEnvironment();
    return new UpdateFixture(environment, tableName);
  }
View Full Code Here

    DBEnvironment environment = workingEnvironment();
    return new UpdateFixture(environment, tableName);
  }

  public Fixture clean() {
    DBEnvironment environment = workingEnvironment();
    return new CleanFixture(environment);
  }
View Full Code Here

    DBEnvironment environment = workingEnvironment();
    return new CleanFixture(environment);
  }

  public boolean cleanTable(String tables) {
    DBEnvironment environment = workingEnvironment();
    String ts[] = tables.split("[;,]");
    for (String table : ts) {
      DbFixtureUtil.cleanTable(environment, table);
    }
    return true;
View Full Code Here

   *
   * @param table
   * @return
   */
  public Fixture delete(String table) {
    DBEnvironment environment = workingEnvironment();
    return new DeleteFixture(environment, table);
  }
View Full Code Here

    DBEnvironment environment = workingEnvironment();
    return new DeleteFixture(environment, table);
  }

  public boolean rollback() throws SQLException {
    DBEnvironment environment = workingEnvironment();
    environment.rollback();
    environment.getConnection().setAutoCommit(false);
    return true;
  }
View Full Code Here

    environment.getConnection().setAutoCommit(false);
    return true;
  }

  public boolean commit() throws SQLException {
    DBEnvironment environment = workingEnvironment();
    environment.commit();
    environment.getConnection().setAutoCommit(false);
    return true;
  }
View Full Code Here

    environment.getConnection().setAutoCommit(false);
    return true;
  }

  public Fixture queryStats() {
    DBEnvironment environment = workingEnvironment();
    return new QueryStatsFixture(environment);
  }
View Full Code Here

TOP

Related Classes of org.jtester.module.database.environment.DBEnvironment

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.