Class DatabaseShardedExecutableRemoveSupport<T>
- java.lang.Object
-
- com.alpha.mongodb.sharding.core.executable.DatabaseShardedExecutableRemoveSupport<T>
-
- All Implemented Interfaces:
DatabaseShardingAssistant<ExtendedMongoTemplate>
,ShardingAssistant
,org.springframework.data.mongodb.core.ExecutableRemoveOperation.ExecutableRemove<T>
,org.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithCollection<T>
,org.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithQuery<T>
,org.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T>
public class DatabaseShardedExecutableRemoveSupport<T> extends Object implements org.springframework.data.mongodb.core.ExecutableRemoveOperation.ExecutableRemove<T>, org.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithCollection<T>, DatabaseShardingAssistant<ExtendedMongoTemplate>
-
-
Constructor Summary
Constructors Constructor Description DatabaseShardedExecutableRemoveSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.client.result.DeleteResult
all()
List<T>
findAndRemove()
org.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithQuery<T>
inCollection(String collection)
org.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T>
matching(org.springframework.data.mongodb.core.query.Query query)
com.mongodb.client.result.DeleteResult
one()
-
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.ExecutableRemoveOperation.RemoveWithQuery
matching
-
Methods inherited from interface com.alpha.mongodb.sharding.core.assitant.ShardingAssistant
getHintResolutionCallbacks, getShardingOptions, resolveCollectionHintWithoutEntityContext, resolveCollectionNameWithoutEntityContext, resolveDatabaseHintWithoutEntityContext, resolveDatabaseNameWithoutEntityContext
-
-
-
-
Method Detail
-
inCollection
public org.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithQuery<T> inCollection(String collection)
- Specified by:
inCollection
in interfaceorg.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithCollection<T>
-
matching
public org.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T> matching(org.springframework.data.mongodb.core.query.Query query)
- Specified by:
matching
in interfaceorg.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithQuery<T>
-
all
public com.mongodb.client.result.DeleteResult all()
- Specified by:
all
in interfaceorg.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T>
-
one
public com.mongodb.client.result.DeleteResult one()
- Specified by:
one
in interfaceorg.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T>
-
-