Class 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 Detail

      • DatabaseShardedExecutableInsertSupport

        public DatabaseShardedExecutableInsertSupport()
    • Method Detail

      • one

        public T one​(T object)
        Specified by:
        one in interface org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingInsert<T>
      • all

        public Collection<T> all​(Collection<? extends T> objects)
        Specified by:
        all in interface org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingInsert<T>
      • bulk

        public com.mongodb.bulk.BulkWriteResult bulk​(Collection<? extends T> objects)
        Specified by:
        bulk in interface org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingBulkInsert<T>
      • inCollection

        public org.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithBulkMode<T> inCollection​(String collection)
        Specified by:
        inCollection in interface org.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 interface org.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithBulkMode<T>