Package dev.morphia

Class DeleteOptions

    • Constructor Detail

      • DeleteOptions

        public DeleteOptions()
        Creates a new options instance
      • DeleteOptions

        public DeleteOptions​(DeleteOptions that)
        Parameters:
        that - the options to copy
        Since:
        2.0
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • collation

        public DeleteOptions collation​(@Nullable
                                       com.mongodb.client.model.Collation collation)
        Overrides:
        collation in class com.mongodb.client.model.DeleteOptions
      • hint

        public DeleteOptions hint​(@Nullable
                                  org.bson.conversions.Bson hint)
        Overrides:
        hint in class com.mongodb.client.model.DeleteOptions
        Returns:
        this
        Since:
        2.2
      • hintString

        public DeleteOptions hintString​(@Nullable
                                        String hint)
        Overrides:
        hintString in class com.mongodb.client.model.DeleteOptions
        Returns:
        this
        Since:
        2.2
      • hint

        public DeleteOptions hint​(org.bson.Document hint)
        Parameters:
        hint - the hint to apply
        Returns:
        this
        Since:
        2.2
        See Also:
        hint(Bson)
      • isMulti

        public boolean isMulti()
        Returns:
        is this delete for multiple documents
      • multi

        public DeleteOptions multi​(boolean multi)
        Parameters:
        multi - true if this delete should affect multiple documents
        Returns:
        this
      • writeConcern

        @Nullable
        public com.mongodb.WriteConcern writeConcern()
        The write concern to use for the delete.
        Specified by:
        writeConcern in interface WriteConfigurable<DeleteOptions>
        Returns:
        the write concern, or null if the default will be used.