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

      • DatabaseShardedExecutableRemoveSupport

        public DatabaseShardedExecutableRemoveSupport()
    • Method Detail

      • inCollection

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

        public com.mongodb.client.result.DeleteResult all()
        Specified by:
        all in interface org.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T>
      • one

        public com.mongodb.client.result.DeleteResult one()
        Specified by:
        one in interface org.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T>
      • findAndRemove

        public List<T> findAndRemove()
        Specified by:
        findAndRemove in interface org.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T>