예제 #1
0
 public Long getChangeLogLockRecheckTime() {
   if (changeLogLockPollRate != null) {
     return changeLogLockPollRate;
   }
   return LiquibaseConfiguration.getInstance()
       .getConfiguration(GlobalConfiguration.class)
       .getDatabaseChangeLogLockPollRate();
 }
예제 #2
0
  /** @see liquibase.database.Database#getLiquibaseTablespaceName() */
  @Override
  public String getLiquibaseTablespaceName() {
    if (liquibaseTablespaceName != null) {
      return liquibaseTablespaceName;
    }

    return LiquibaseConfiguration.getInstance()
        .getConfiguration(GlobalConfiguration.class)
        .getLiquibaseTablespaceName();
  }
예제 #3
0
  /** @see liquibase.database.Database#getDatabaseChangeLogLockTableName() */
  @Override
  public String getDatabaseChangeLogLockTableName() {
    if (databaseChangeLogLockTableName != null) {
      return databaseChangeLogLockTableName;
    }

    return LiquibaseConfiguration.getInstance()
        .getConfiguration(GlobalConfiguration.class)
        .getDatabaseChangeLogLockTableName();
  }
예제 #4
0
  @Override
  public String getLiquibaseSchemaName() {
    if (liquibaseSchemaName != null) {
      return liquibaseSchemaName;
    }

    ConfigurationProperty configuration =
        LiquibaseConfiguration.getInstance()
            .getProperty(GlobalConfiguration.class, GlobalConfiguration.LIQUIBASE_SCHEMA_NAME);
    if (configuration.getWasOverridden()) {
      return configuration.getValue(String.class);
    }

    return getDefaultSchemaName();
  }
 @Before
 public void before() {
   LiquibaseConfiguration.getInstance().reset();
 }