Class DatabaseShardedExecutableUpdateSupport<T>

  • All Implemented Interfaces:
    DatabaseShardingAssistant<ExtendedMongoTemplate>, ShardingAssistant, org.springframework.data.mongodb.core.ExecutableUpdateOperation.ExecutableUpdate<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndModifyWithOptions<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithOptions<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndReplace<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithCollection<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate<T>

    public class DatabaseShardedExecutableUpdateSupport<T>
    extends Object
    implements org.springframework.data.mongodb.core.ExecutableUpdateOperation.ExecutableUpdate<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithCollection<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithOptions<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndReplace<T>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T>, DatabaseShardingAssistant<ExtendedMongoTemplate>
    • Constructor Detail

      • DatabaseShardedExecutableUpdateSupport

        public DatabaseShardedExecutableUpdateSupport()
    • Method Detail

      • apply

        public org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T> apply​(org.springframework.data.mongodb.core.query.UpdateDefinition update)
        Specified by:
        apply in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate<T>
      • inCollection

        public org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery<T> inCollection​(String collection)
        Specified by:
        inCollection in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithCollection<T>
      • withOptions

        public org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify<T> withOptions​(org.springframework.data.mongodb.core.FindAndModifyOptions options)
        Specified by:
        withOptions in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndModifyWithOptions<T>
      • replaceWith

        public org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T> replaceWith​(T replacement)
        Specified by:
        replaceWith in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate<T>
      • withOptions

        public org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T> withOptions​(org.springframework.data.mongodb.core.FindAndReplaceOptions options)
        Specified by:
        withOptions in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithOptions<T>
      • matching

        public org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate<T> matching​(org.springframework.data.mongodb.core.query.Query query)
        Specified by:
        matching in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery<T>
      • as

        public <R> org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithOptions<R> as​(Class<R> resultType)
        Specified by:
        as in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T>
      • all

        public com.mongodb.client.result.UpdateResult all()
        Specified by:
        all in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
      • first

        public com.mongodb.client.result.UpdateResult first()
        Specified by:
        first in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
      • upsert

        public com.mongodb.client.result.UpdateResult upsert()
        Specified by:
        upsert in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
      • findAndModifyValue

        @Nullable
        public T findAndModifyValue()
        Specified by:
        findAndModifyValue in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify<T>
      • findAndReplaceValue

        @Nullable
        public T findAndReplaceValue()
        Specified by:
        findAndReplaceValue in interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndReplace<T>