T - ID - public class SimpleKeyValueRepository<T,ID> extends Object implements KeyValueRepository<T,ID>
KeyValueRepository implementation.| Constructor and Description |
|---|
SimpleKeyValueRepository(EntityInformation<T,ID> metadata,
KeyValueOperations operations)
|
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
delete(T entity) |
void |
deleteAll() |
void |
deleteAll(Iterable<? extends T> entities) |
void |
deleteAllById(Iterable<? extends ID> ids) |
void |
deleteById(ID id) |
boolean |
existsById(ID id) |
List<T> |
findAll() |
Page<T> |
findAll(Pageable pageable) |
Iterable<T> |
findAll(Sort sort) |
Iterable<T> |
findAllById(Iterable<ID> ids) |
Optional<T> |
findById(ID id) |
<S extends T> |
save(S entity) |
<S extends T> |
saveAll(Iterable<S> entities) |
public SimpleKeyValueRepository(EntityInformation<T,ID> metadata, KeyValueOperations operations)
metadata - must not be null.operations - must not be null.public <S extends T> S save(S entity)
save in interface CrudRepository<T,ID>public <S extends T> Iterable<S> saveAll(Iterable<S> entities)
saveAll in interface CrudRepository<T,ID>public Optional<T> findById(ID id)
findById in interface CrudRepository<T,ID>public boolean existsById(ID id)
existsById in interface CrudRepository<T,ID>public Iterable<T> findAllById(Iterable<ID> ids)
findAllById in interface CrudRepository<T,ID>public long count()
count in interface CrudRepository<T,ID>public void deleteById(ID id)
deleteById in interface CrudRepository<T,ID>public void delete(T entity)
delete in interface CrudRepository<T,ID>public void deleteAllById(Iterable<? extends ID> ids)
deleteAllById in interface CrudRepository<T,ID>public void deleteAll(Iterable<? extends T> entities)
deleteAll in interface CrudRepository<T,ID>public void deleteAll()
deleteAll in interface CrudRepository<T,ID>public Iterable<T> findAll(Sort sort)
findAll in interface PagingAndSortingRepository<T,ID>Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.