Class CleanResult

java.lang.Object
ac.simons.neo4j.migrations.core.CleanResult
All Implemented Interfaces:
DatabaseOperationResult, OperationResult

public final class CleanResult extends Object implements DatabaseOperationResult
Result of a clean operation. The result is immutable.
Since:
1.1.0
Author:
Michael J. Simons
  • Method Details

    • getAffectedDatabase

      public Optional<String> getAffectedDatabase()
      Specified by:
      getAffectedDatabase in interface DatabaseOperationResult
      Returns:
      the optional name of the database clean, an empty optional indicates the default database
    • getChainsDeleted

      public List<String> getChainsDeleted()
      The list of chains deleted.
      Returns:
      the name of the chains' migration targets
    • getNodesDeleted

      public long getNodesDeleted()
      Returns:
      how many nodes have been deleted.
    • getRelationshipsDeleted

      public long getRelationshipsDeleted()
      Returns:
      how many relationships have been deleted
    • getConstraintsRemoved

      public long getConstraintsRemoved()
      Returns:
      how many constraints have been removed
    • getIndexesRemoved

      public long getIndexesRemoved()
      Returns:
      how many indexes have been removed
    • prettyPrint

      public String prettyPrint()
      Specified by:
      prettyPrint in interface OperationResult
      Returns:
      a sensible string applicable in a log or info message