Class DatabaseShardedExecutableInsertSupport<T>
- java.lang.Object
-
- com.alpha.mongodb.sharding.core.executable.DatabaseShardedExecutableInsertSupport<T>
-
- All Implemented Interfaces:
DatabaseShardingAssistant<ExtendedMongoTemplate>
,ShardingAssistant
,org.springframework.data.mongodb.core.ExecutableInsertOperation.ExecutableInsert<T>
,org.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithBulkMode<T>
,org.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithCollection<T>
,org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingBulkInsert<T>
,org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingInsert<T>
public class DatabaseShardedExecutableInsertSupport<T> extends Object implements org.springframework.data.mongodb.core.ExecutableInsertOperation.ExecutableInsert<T>, DatabaseShardingAssistant<ExtendedMongoTemplate>
-
-
Constructor Summary
Constructors Constructor Description DatabaseShardedExecutableInsertSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<T>
all(Collection<? extends T> objects)
com.mongodb.bulk.BulkWriteResult
bulk(Collection<? extends T> objects)
org.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithBulkMode<T>
inCollection(String collection)
T
one(T object)
org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingBulkInsert<T>
withBulkMode(org.springframework.data.mongodb.core.BulkOperations.BulkMode bulkMode)
-
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 com.alpha.mongodb.sharding.core.assitant.ShardingAssistant
getHintResolutionCallbacks, getShardingOptions, resolveCollectionHintWithoutEntityContext, resolveCollectionNameWithoutEntityContext, resolveDatabaseHintWithoutEntityContext, resolveDatabaseNameWithoutEntityContext
-
-
-
-
Method Detail
-
one
public T one(T object)
- Specified by:
one
in interfaceorg.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingInsert<T>
-
all
public Collection<T> all(Collection<? extends T> objects)
- Specified by:
all
in interfaceorg.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingInsert<T>
-
bulk
public com.mongodb.bulk.BulkWriteResult bulk(Collection<? extends T> objects)
- Specified by:
bulk
in interfaceorg.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingBulkInsert<T>
-
inCollection
public org.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithBulkMode<T> inCollection(String collection)
- Specified by:
inCollection
in interfaceorg.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithCollection<T>
-
withBulkMode
public org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingBulkInsert<T> withBulkMode(org.springframework.data.mongodb.core.BulkOperations.BulkMode bulkMode)
- Specified by:
withBulkMode
in interfaceorg.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithBulkMode<T>
-
-