クラス SimpleCassandraRepository<T,ID>
java.lang.ObjectSE
org.springframework.data.cassandra.repository.support.SimpleCassandraRepository<T,ID>
- 実装されたすべてのインターフェース:
CassandraRepository<T,
、ID> CrudRepository<T,
、ID> ListCrudRepository<T,
、ID> Repository<T,
ID>
Cassandra のリポジトリベースの実装。
- 作成者:
- Alex Shvid, Matthew T. Adams, Mark Paluch, John Blum, Jens Schauder
- 関連事項:
コンストラクターのサマリー
コンストラクター説明SimpleCassandraRepository
(CassandraEntityInformation<T, ID> metadata, CassandraOperations operations) メソッドのサマリー
修飾子と型メソッド説明long
count()
void
void
void
deleteAll
(IterableSE<? extends T> entities) void
deleteAllById
(IterableSE<? extends ID> ids) void
deleteById
(ID id) boolean
existsById
(ID id) findAll()
Pageable
オブジェクトで提供されるページング制限を満たすエンティティのSlice
を返します。findAllById
(IterableSE<ID> ids) insert
(IterableSE<S> entities) 指定されたエンティティを挿入します。<S extends T>
Sinsert
(S entity) 指定されたエンティティを挿入します。<S extends T>
Ssave
(S entity) saveAll
(IterableSE<S> entities)
コンストラクターの詳細
SimpleCassandraRepository
public SimpleCassandraRepository(CassandraEntityInformation<T, ID> metadata, CassandraOperations operations) - パラメーター:
metadata
- null であってはなりません。operations
- null であってはなりません。
メソッドの詳細
save
- 次で指定:
- インターフェース
CrudRepository<T,
のID> save
saveAll
- 次で指定:
- インターフェース
CrudRepository<T,
のID> saveAll
- 次で指定:
- インターフェース
ListCrudRepository<T,
のID> saveAll
findById
- 次で指定:
- インターフェース
CrudRepository<T,
のID> findById
existsById
- 次で指定:
- インターフェース
CrudRepository<T,
のID> existsById
findAll
- 次で指定:
- インターフェース
CrudRepository<T,
のID> findAll
- 次で指定:
- インターフェース
ListCrudRepository<T,
のID> findAll
findAllById
インターフェースからコピーされた説明:CassandraRepository
メモ: Cassandra は単一フィールドの
IN
クエリのみをサポートします。複数のコンポーネントでMapId
を使用する場合は、CrudRepository.findById(Object)
を使用します。- 次で指定:
- インターフェース
CassandraRepository<T,
のID> findAllById
- 次で指定:
- インターフェース
CrudRepository<T,
のID> findAllById
- 次で指定:
- インターフェース
ListCrudRepository<T,
のID> findAllById
count
public long count()- 次で指定:
- インターフェース
CrudRepository<T,
のID> count
deleteById
- 次で指定:
- インターフェース
CrudRepository<T,
のID> deleteById
delete
- 次で指定:
- インターフェース
CrudRepository<T,
のID> delete
deleteAllById
- 次で指定:
- インターフェース
CrudRepository<T,
のID> deleteAllById
deleteAll
- 次で指定:
- インターフェース
CrudRepository<T,
のID> deleteAll
deleteAll
public void deleteAll()- 次で指定:
- インターフェース
CrudRepository<T,
のID> deleteAll
findAll
インターフェースからコピーされた説明:CassandraRepository
Pageable
オブジェクトで提供されるページング制限を満たすエンティティのSlice
を返します。- 次で指定:
- インターフェース
CassandraRepository<T,
のID> findAll
- パラメーター:
pageable
- null であってはなりません。- 戻り値:
- エンティティの
Slice
。 - 関連事項:
insert
インターフェースからコピーされた説明:CassandraRepository
指定されたエンティティを挿入します。挿入の最適化を適用できるように、インスタンスが新規であると想定します。保存操作によってエンティティインスタンスが完全に変更される可能性があるため、返されたインスタンスを以降の操作に使用します。ストア固有の API の使用を避けるため、代わりにCrudRepository.save(Object)
を使用することをお勧めします。- 次で指定:
- インターフェース
CassandraRepository<T,
のID> insert
- パラメーター:
entity
- null であってはなりません。- 戻り値:
- 保存されたエンティティ
insert
インターフェースからコピーされた説明:CassandraRepository
指定されたエンティティを挿入します。指定されたエンティティはまだ保存されていないと想定し、ListCrudRepository.saveAll(Iterable)
の呼び出しよりも挿入を最適化します。ストア固有の API の使用を避けるには、ListCrudRepository.saveAll(Iterable)
の使用を推奨します。- 次で指定:
- インターフェース
CassandraRepository<T,
のID> insert
- パラメーター:
entities
- null であってはなりません。- 戻り値:
- 保存されたエンティティ