java.lang.Object
ac.simons.neo4j.migrations.core.DeleteResult
- All Implemented Interfaces:
DatabaseOperationResult
,OperationResult
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 Summary
Modifier and TypeMethodDescriptionReturns the optional name of the database clean, an empty optional indicates the default database.long
long
long
long
long
boolean
Returns a sensible string applicable in a log or info message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ac.simons.neo4j.migrations.core.OperationResult
getWarnings
-
Method Details
-
isDatabaseChanged
public boolean isDatabaseChanged()- Returns:
- true if the database has been changed
-
getVersion
- Returns:
- the deleted version (if any)
-
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
Description copied from interface:DatabaseOperationResult
Returns the optional name of the database clean, an empty optional indicates the default database.- Specified by:
getAffectedDatabase
in interfaceDatabaseOperationResult
- 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
-