Package dev.morphia

Class ModifyOptions

  • java.lang.Object
    • com.mongodb.client.model.FindOneAndUpdateOptions
      • dev.morphia.ModifyOptions
    • Constructor Detail

      • ModifyOptions

        public ModifyOptions()
    • Method Detail

      • hint

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

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

        public ModifyOptions sort​(@Nullable
                                  org.bson.conversions.Bson sort)
        Overrides:
        sort in class com.mongodb.client.model.FindOneAndUpdateOptions
      • upsert

        public ModifyOptions upsert​(boolean upsert)
        Overrides:
        upsert in class com.mongodb.client.model.FindOneAndUpdateOptions
      • returnDocument

        public ModifyOptions returnDocument​(com.mongodb.client.model.ReturnDocument returnDocument)
        Overrides:
        returnDocument in class com.mongodb.client.model.FindOneAndUpdateOptions
      • maxTime

        public ModifyOptions maxTime​(long maxTime,
                                     TimeUnit timeUnit)
        Overrides:
        maxTime in class com.mongodb.client.model.FindOneAndUpdateOptions
      • bypassDocumentValidation

        public ModifyOptions bypassDocumentValidation​(@Nullable
                                                      Boolean bypassDocumentValidation)
        Overrides:
        bypassDocumentValidation in class com.mongodb.client.model.FindOneAndUpdateOptions
      • collation

        public ModifyOptions collation​(@Nullable
                                       com.mongodb.client.model.Collation collation)
        Overrides:
        collation in class com.mongodb.client.model.FindOneAndUpdateOptions
      • arrayFilters

        public ModifyOptions arrayFilters​(@Nullable
                                          List<? extends org.bson.conversions.Bson> arrayFilters)
        Overrides:
        arrayFilters in class com.mongodb.client.model.FindOneAndUpdateOptions
      • hint

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

        public ModifyOptions hintString​(@Nullable
                                        String hint)
        Overrides:
        hintString in class com.mongodb.client.model.FindOneAndUpdateOptions
        Returns:
        this
        Since:
        2.2
      • 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<ModifyOptions>
        Returns:
        the write concern to use