Class DatabaseShardedExecutableUpdateSupport<T>
- java.lang.Object
-
- com.alpha.mongodb.sharding.core.executable.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 Summary
Constructors Constructor Description DatabaseShardedExecutableUpdateSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.client.result.UpdateResult
all()
org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
apply(org.springframework.data.mongodb.core.query.UpdateDefinition update)
<R> org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithOptions<R>
as(Class<R> resultType)
T
findAndModifyValue()
T
findAndReplaceValue()
com.mongodb.client.result.UpdateResult
first()
org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery<T>
inCollection(String collection)
org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate<T>
matching(org.springframework.data.mongodb.core.query.Query query)
org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T>
replaceWith(T replacement)
com.mongodb.client.result.UpdateResult
upsert()
org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify<T>
withOptions(org.springframework.data.mongodb.core.FindAndModifyOptions options)
org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T>
withOptions(org.springframework.data.mongodb.core.FindAndReplaceOptions options)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alpha.mongodb.sharding.core.assitant.DatabaseShardingAssistant
getDelegatedShardedMongoTemplateMap, getDelegatedTemplateForDeleteContext, getDelegatedTemplateForDeleteContext, getDelegatedTemplateForDeleteContext, getDelegatedTemplateForFindContext, getDelegatedTemplateForFindContext, getDelegatedTemplateForSaveContext, getDelegatedTemplateForUpdateContext, getDelegatedTemplateForUpdateContext, getDelegatedTemplateWithEntityContext, getDelegatedTemplateWithoutEntityContext, resolveDatabaseHintWithEntityContext
-
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify
findAndModify
-
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndReplace
findAndReplace
-
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery
matching
-
Methods inherited from interface com.alpha.mongodb.sharding.core.assitant.ShardingAssistant
getHintResolutionCallbacks, getShardingOptions, resolveCollectionHintWithoutEntityContext, resolveCollectionNameWithoutEntityContext, resolveDatabaseHintWithoutEntityContext, resolveDatabaseNameWithoutEntityContext
-
-
-
-
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 interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate<T>
-
inCollection
public org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery<T> inCollection(String collection)
- Specified by:
inCollection
in interfaceorg.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 interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndModifyWithOptions<T>
-
replaceWith
public org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T> replaceWith(T replacement)
- Specified by:
replaceWith
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T>
-
all
public com.mongodb.client.result.UpdateResult all()
- Specified by:
all
in interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
-
first
public com.mongodb.client.result.UpdateResult first()
- Specified by:
first
in interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
-
upsert
public com.mongodb.client.result.UpdateResult upsert()
- Specified by:
upsert
in interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
-
findAndModifyValue
@Nullable public T findAndModifyValue()
- Specified by:
findAndModifyValue
in interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify<T>
-
-