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();
 }