Class AbstractPgPrecondition<E>

java.lang.Object
liquibase.serializer.AbstractLiquibaseSerializable
liquibase.precondition.AbstractPrecondition
ch.tocco.nice2.dbrefactoring.impl.liquibase.precondition.AbstractPgPrecondition<E>
All Implemented Interfaces:
liquibase.precondition.Precondition, liquibase.serializer.LiquibaseSerializable
Direct Known Subclasses:
PgColumnExistsPrecondition, PgForeignKeyExistsPrecondition, PgIndexExistsPrecondition, PgPrimaryKeyExistsPrecondition, PgTableExistsPrecondition

public abstract class AbstractPgPrecondition<E> extends liquibase.precondition.AbstractPrecondition
  • Nested Class Summary

    Nested classes/interfaces inherited from interface liquibase.serializer.LiquibaseSerializable

    liquibase.serializer.LiquibaseSerializable.SerializationType
  • Field Summary

    Fields inherited from interface liquibase.serializer.LiquibaseSerializable

    GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract String
     
    final void
    check(liquibase.database.Database database, liquibase.changelog.DatabaseChangeLog changeLog, liquibase.changelog.ChangeSet changeSet, liquibase.changelog.visitor.ChangeExecListener changeExecListener)
     
    protected abstract void
    evaluateResult(E result, liquibase.changelog.DatabaseChangeLog changeLog)
     
    protected abstract void
     
    liquibase.exception.ValidationErrors
    validate(liquibase.database.Database database)
     
    liquibase.exception.Warnings
    warn(liquibase.database.Database database)
     

    Methods inherited from class liquibase.precondition.AbstractPrecondition

    getSerializedObjectName

    Methods inherited from class liquibase.serializer.AbstractLiquibaseSerializable

    convertEscaped, getSerializableFieldDataTypeClass, getSerializableFieldDataTypeClassParameters, getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, load, serialize, serializeValue, setSerializableFieldValue, shouldAutoLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface liquibase.serializer.LiquibaseSerializable

    getSerializableFieldNamespace, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectNamespace, serialize

    Methods inherited from interface liquibase.precondition.Precondition

    getName, load
  • Constructor Details

    • AbstractPgPrecondition

      protected AbstractPgPrecondition(Class<E> resultClass)
  • Method Details

    • check

      public final void check(liquibase.database.Database database, liquibase.changelog.DatabaseChangeLog changeLog, liquibase.changelog.ChangeSet changeSet, liquibase.changelog.visitor.ChangeExecListener changeExecListener) throws liquibase.exception.PreconditionFailedException, liquibase.exception.PreconditionErrorException
      Throws:
      liquibase.exception.PreconditionFailedException
      liquibase.exception.PreconditionErrorException
    • buildQuery

      protected abstract String buildQuery()
    • evaluateResult

      protected abstract void evaluateResult(E result, liquibase.changelog.DatabaseChangeLog changeLog) throws liquibase.exception.PreconditionFailedException
      Throws:
      liquibase.exception.PreconditionFailedException
    • validate

      protected abstract void validate() throws liquibase.exception.PreconditionErrorException
      Throws:
      liquibase.exception.PreconditionErrorException
    • warn

      public liquibase.exception.Warnings warn(liquibase.database.Database database)
    • validate

      public liquibase.exception.ValidationErrors validate(liquibase.database.Database database)