java.lang.Object
ac.simons.neo4j.migrations.core.CleanResult
- All Implemented Interfaces:
DatabaseOperationResult
,OperationResult
Result of a clean operation. The result is immutable.
- Since:
- 1.1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionReturns the optional name of the database clean, an empty optional indicates the default database.The list of chains deleted.long
long
long
long
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
-
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
-
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
Description copied from interface:OperationResult
Returns a sensible string applicable in a log or info message.- Specified by:
prettyPrint
in interfaceOperationResult
- Returns:
- a sensible string applicable in a log or info message
-