T - ID - public class SimpleKeyValueRepository<T,ID> extends Object implements KeyValueRepository<T,ID>
KeyValueRepository implementation.| Constructor and Description |
|---|
SimpleKeyValueRepository(org.springframework.data.repository.core.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() |
org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable) |
Iterable<T> |
findAll(org.springframework.data.domain.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(org.springframework.data.repository.core.EntityInformation<T,ID> metadata, KeyValueOperations operations)
metadata - must not be null.operations - must not be null.public <S extends T> S save(S entity)
public boolean existsById(ID id)
public long count()
public void deleteById(ID id)
public void delete(T entity)
public void deleteAll()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.