Class MongoClientDeleteResult


  • public class MongoClientDeleteResult
    extends Object
    Result propagated from mongodb driver delete result.
    Author:
    Maziz Esa
    • Field Detail

      • DEFAULT_REMOVEDCOUNT

        public static final long DEFAULT_REMOVEDCOUNT
        The default value is 0, signifying no document is removed
        See Also:
        Constant Field Values
      • REMOVED_COUNT

        public static final String REMOVED_COUNT
        Constant to be used when storing and retrieving Json for documents removed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MongoClientDeleteResult

        public MongoClientDeleteResult()
        Default constructor
      • MongoClientDeleteResult

        public MongoClientDeleteResult​(long docRemovedCount)
        Constructor that specify the number of documents removed
        Parameters:
        docRemovedCount -
      • MongoClientDeleteResult

        public MongoClientDeleteResult​(MongoClientDeleteResult otherMongoClientDeleteResultCopy)
        Copy constructor
        Parameters:
        otherMongoClientDeleteResultCopy - the one to copy
      • MongoClientDeleteResult

        public MongoClientDeleteResult​(JsonObject mongoClientDeleteResultJson)
        Constructor form JSON
        Parameters:
        mongoClientDeleteResultJson - the JSON
    • Method Detail

      • toJson

        public JsonObject toJson()
        Convert to JSON
        Returns:
        the JSON
      • getRemovedCount

        public long getRemovedCount()
        Get the number of removed documents
        Returns:
        number of removed documents
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object