Package ch.inftec.ju.db.JuEmUtil

Examples of ch.inftec.ju.db.JuEmUtil.DbType


   * DbTypes specified.
   * @param emUtil JuEmUtil
   * @param types Types we assume the DB is not
   */
  public static void dbIsNot(JuEmUtil emUtil, DbType... types) {
    DbType actualType = emUtil.getDbType();
   
    for (DbType type : types) {
      Assume.assumeFalse("Assumed DB was not " + type, type == actualType);
    }
  }
View Full Code Here


   * @param changeLogResourceName Name of the change log resource. The resource will be loaded using the
   * default class loader.
   */
  public void runLiquibaseChangeLog(final String changeLogResourceName) {
    // 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
View Full Code Here

   * @param resetSequences If true, sequences (or identity columns) will be reset to 1
   * @param createSchema If true, the Schema will be created (or verified) using Liquibase
   */
  public void prepareDefaultTestData(boolean emptyTables, boolean resetSequences, boolean createSchema) {
    try {
      DbType dbType = this.emUtil.getDbType();
     
      if (createSchema) {
        this.runLiquibaseChangeLog("ju-testing/data/default-changeLog.xml");
       
        // For non-MySQL DBs, we also need to create the hibernate_sequence sequence...
View Full Code Here

TOP

Related Classes of ch.inftec.ju.db.JuEmUtil.DbType

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.