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

public final class DeleteResult extends Object
A DeleteResult will be created after using Migrations.delete(MigrationVersion) for deleting one single migration. It contains the number of deleted nodes and relationships as well as the number of newly created relationships.
Since:
2.2.0
Author:
Michael J. Simons
  • Method Details

    • isDatabaseChanged

      public boolean isDatabaseChanged()
      Returns:
      true if the database has been changed
    • getVersion

      public Optional<MigrationVersion> getVersion()
      Returns:
      the deleted version (if any)
    • prettyPrint

      public String prettyPrint()
      Description copied from interface: OperationResult
      Returns a sensible string applicable in a log or info message.
      Returns:
      a sensible string applicable in a log or info message
    • getAffectedDatabase

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

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

      public long getNodesCreated()
      Returns:
      how many nodes have been created.
    • getRelationshipsDeleted

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

      public long getRelationshipsCreated()
      Returns:
      how many relationships have been created
    • getPropertiesSet

      public long getPropertiesSet()
      Returns:
      the number of properties set