Class SimpleKeyValueRepository<T,ID>
java.lang.Object
org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
- Type Parameters:
T-ID-
- All Implemented Interfaces:
KeyValueRepository<T,,ID> org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.repository.ListCrudRepository<T,,ID> org.springframework.data.repository.ListPagingAndSortingRepository<T,,ID> org.springframework.data.repository.PagingAndSortingRepository<T,,ID> org.springframework.data.repository.Repository<T,ID>
- Direct Known Subclasses:
QuerydslKeyValueRepository
Simple
KeyValueRepository implementation.- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch, Eugene Nikiforov
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleKeyValueRepository(org.springframework.data.repository.core.EntityInformation<T, ID> metadata, KeyValueOperations operations) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()voidvoidvoidvoiddeleteAllById(Iterable<? extends ID> ids) voiddeleteById(ID id) booleanexistsById(ID id) findAll()org.springframework.data.domain.Page<T>findAll(org.springframework.data.domain.Pageable pageable) findAll(org.springframework.data.domain.Sort sort) findAllById(Iterable<ID> ids) <S extends T>
Ssave(S entity)
-
Constructor Details
-
SimpleKeyValueRepository
public SimpleKeyValueRepository(org.springframework.data.repository.core.EntityInformation<T, ID> metadata, KeyValueOperations operations) - Parameters:
metadata- must not be null.operations- must not be null.
-
-
Method Details
-
save
-
saveAll
-
findById
-
existsById
-
findAll
-
findAllById
-
count
public long count() -
deleteById
-
delete
-
deleteAllById
-
deleteAll
-
deleteAll
public void deleteAll() -
findAll
-
findAll
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
-