クラス SimpleReactiveCassandraRepository<T,ID>
java.lang.ObjectSE
org.springframework.data.cassandra.repository.support.SimpleReactiveCassandraRepository<T,ID>
- 実装されたすべてのインターフェース:
ReactiveCassandraRepository<T,
、ID> ReactiveCrudRepository<T,
、ID> Repository<T,
ID>
public class SimpleReactiveCassandraRepository<T,ID>
extends ObjectSE
implements ReactiveCassandraRepository<T,ID>
Cassandra 用のリアクティブリポジトリベースの実装。
- 導入:
- 2.0
- 作成者:
- Mark Paluch, Christoph Strobl, Jens Schauder
コンストラクターのサマリー
コンストラクターコンストラクター説明SimpleReactiveCassandraRepository
(CassandraEntityInformation<T, ID> metadata, ReactiveCassandraOperations operations) 指定されたCassandraEntityInformation
およびReactiveCassandraOperations
に対して新しいSimpleReactiveCassandraRepository
を作成します。メソッドのサマリー
修飾子と型メソッド説明reactor.core.publisher.Mono<LongSE>
count()
reactor.core.publisher.Mono<VoidSE>
reactor.core.publisher.Mono<VoidSE>
reactor.core.publisher.Mono<VoidSE>
deleteAll
(IterableSE<? extends T> entities) reactor.core.publisher.Mono<VoidSE>
reactor.core.publisher.Mono<VoidSE>
deleteAllById
(IterableSE<? extends ID> ids) reactor.core.publisher.Mono<VoidSE>
deleteById
(ID id) reactor.core.publisher.Mono<VoidSE>
deleteById
(org.reactivestreams.Publisher<ID> publisher) reactor.core.publisher.Mono<BooleanSE>
existsById
(ID id) reactor.core.publisher.Mono<BooleanSE>
existsById
(org.reactivestreams.Publisher<ID> publisher) reactor.core.publisher.Flux<T>
findAll()
reactor.core.publisher.Flux<T>
findAllById
(IterableSE<ID> ids) reactor.core.publisher.Flux<T>
findAllById
(org.reactivestreams.Publisher<ID> idStream) reactor.core.publisher.Mono<T>
reactor.core.publisher.Mono<T>
<S extends T>
reactor.core.publisher.Flux<S>insert
(IterableSE<S> entities) 指定されたエンティティを挿入します。<S extends T>
reactor.core.publisher.Flux<S>insert
(org.reactivestreams.Publisher<S> entityStream) 指定されたエンティティを挿入します。<S extends T>
reactor.core.publisher.Mono<S>insert
(S entity) 指定されたエンティティを挿入します。<S extends T>
reactor.core.publisher.Mono<S>save
(S entity) <S extends T>
reactor.core.publisher.Flux<S>saveAll
(IterableSE<S> entities) <S extends T>
reactor.core.publisher.Flux<S>saveAll
(org.reactivestreams.Publisher<S> entityStream)
コンストラクターの詳細
SimpleReactiveCassandraRepository
public SimpleReactiveCassandraRepository(CassandraEntityInformation<T, ID> metadata, ReactiveCassandraOperations operations) 指定されたCassandraEntityInformation
およびReactiveCassandraOperations
に対して新しいSimpleReactiveCassandraRepository
を作成します。- パラメーター:
metadata
- null であってはなりません。operations
- null であってはなりません。
メソッドの詳細
save
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> save
saveAll
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> saveAll
saveAll
public <S extends T> reactor.core.publisher.Flux<S> saveAll(org.reactivestreams.Publisher<S> entityStream) - 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> saveAll
findById
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> findById
findById
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> findById
existsById
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> existsById
existsById
public reactor.core.publisher.Mono<BooleanSE> existsById(org.reactivestreams.Publisher<ID> publisher) - 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> existsById
findAll
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> findAll
findAllById
インターフェースからコピーされた説明:ReactiveCassandraRepository
メモ: Cassandra は単一フィールドの
IN
クエリのみをサポートします。複数のコンポーネントでMapId
を使用する場合は、各行を個別にフェッチします。- 次で指定:
- インターフェース
ReactiveCassandraRepository<T,
のID> findAllById
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> findAllById
findAllById
インターフェースからコピーされた説明:ReactiveCassandraRepository
各行を個別に取得します。
- 次で指定:
- インターフェース
ReactiveCassandraRepository<T,
のID> findAllById
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> findAllById
count
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> count
deleteById
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> deleteById
deleteById
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> deleteById
delete
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> delete
deleteAllById
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> deleteAllById
deleteAll
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> deleteAll
deleteAll
public reactor.core.publisher.Mono<VoidSE> deleteAll(org.reactivestreams.Publisher<? extends T> entityStream) - 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> deleteAll
deleteAll
- 次で指定:
- インターフェース
ReactiveCrudRepository<T,
のID> deleteAll
insert
インターフェースからコピーされた説明:ReactiveCassandraRepository
指定されたエンティティを挿入します。挿入の最適化を適用できるように、インスタンスが新規であると想定します。保存操作によってエンティティインスタンスが完全に変更される可能性があるため、返されたインスタンスを以降の操作に使用します。ストア固有の API の使用を避けるため、代わりにReactiveCrudRepository.save(Object)
を使用することをお勧めします。- 次で指定:
- インターフェース
ReactiveCassandraRepository<T,
のID> insert
- パラメーター:
entity
- null であってはなりません。- 戻り値:
- 保存されたエンティティ
insert
インターフェースからコピーされた説明:ReactiveCassandraRepository
指定されたエンティティを挿入します。挿入の最適化を適用できるように、インスタンスが新規であると想定します。保存操作によってエンティティインスタンスが完全に変更される可能性があるため、返されたインスタンスを以降の操作に使用します。ストア固有の API の使用を避けるため、代わりにReactiveCrudRepository.save(Object)
を使用することをお勧めします。- 次で指定:
- インターフェース
ReactiveCassandraRepository<T,
のID> insert
- パラメーター:
entities
- null であってはなりません。- 戻り値:
- 保存されたエンティティ
insert
public <S extends T> reactor.core.publisher.Flux<S> insert(org.reactivestreams.Publisher<S> entityStream) インターフェースからコピーされた説明:ReactiveCassandraRepository
指定されたエンティティを挿入します。挿入の最適化を適用できるように、インスタンスが新規であると想定します。保存操作によってエンティティインスタンスが完全に変更される可能性があるため、返されたインスタンスを以降の操作に使用します。ストア固有の API の使用を避けるため、代わりにReactiveCrudRepository.save(Object)
を使用することをお勧めします。- 次で指定:
- インターフェース
ReactiveCassandraRepository<T,
のID> insert
- パラメーター:
entityStream
- null であってはなりません。- 戻り値:
- 保存されたエンティティ