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.UpdateResultall()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)TfindAndModifyValue()TfindAndReplaceValue()com.mongodb.client.result.UpdateResultfirst()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.UpdateResultupsert()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:
 applyin interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate<T>
 
- 
inCollection
public org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery<T> inCollection(String collection)
- Specified by:
 inCollectionin 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:
 withOptionsin interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndModifyWithOptions<T>
 
- 
replaceWith
public org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T> replaceWith(T replacement)
- Specified by:
 replaceWithin 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:
 withOptionsin 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:
 matchingin 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:
 asin interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T>
 
- 
all
public com.mongodb.client.result.UpdateResult all()
- Specified by:
 allin interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
 
- 
first
public com.mongodb.client.result.UpdateResult first()
- Specified by:
 firstin interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
 
- 
upsert
public com.mongodb.client.result.UpdateResult upsert()
- Specified by:
 upsertin interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T>
 
- 
findAndModifyValue
@Nullable public T findAndModifyValue()
- Specified by:
 findAndModifyValuein interfaceorg.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify<T>
 
 - 
 
 -