コード例 #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();
  }
コード例 #5
0
 @Before
 public void before() {
   LiquibaseConfiguration.getInstance().reset();
 }