Class FindAndDeleteOptions

    • Constructor Detail

      • FindAndDeleteOptions

        public FindAndDeleteOptions()
    • Method Detail

      • hint

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

        public FindAndDeleteOptions projection​(@Nullable
                                               org.bson.conversions.Bson projection)
        Overrides:
        projection in class com.mongodb.client.model.FindOneAndDeleteOptions
      • sort

        public FindAndDeleteOptions sort​(@Nullable
                                         org.bson.conversions.Bson sort)
        Overrides:
        sort in class com.mongodb.client.model.FindOneAndDeleteOptions
      • maxTime

        public FindAndDeleteOptions maxTime​(long maxTime,
                                            TimeUnit timeUnit)
        Overrides:
        maxTime in class com.mongodb.client.model.FindOneAndDeleteOptions
      • collation

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

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

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

        public FindAndDeleteOptions sort​(org.bson.Document sort)
        Parameters:
        sort - the sort to apply
        Returns:
        this
      • writeConcern

        @Nullable
        public com.mongodb.WriteConcern writeConcern()
        Description copied from interface: WriteConfigurable
        The write concern to use. By default the write concern configured for the MongoCollection instance will be used.
        Specified by:
        writeConcern in interface WriteConfigurable<FindAndDeleteOptions>
        Returns:
        the write concern to use