T
- ID
- public class SimpleKeyValueRepository<T,ID extends Serializable> extends Object implements KeyValueRepository<T,ID>
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(ID id) |
void |
delete(Iterable<? extends T> entities) |
void |
delete(T entity) |
void |
deleteAll() |
boolean |
exists(ID id) |
List<T> |
findAll() |
Iterable<T> |
findAll(Iterable<ID> ids) |
org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable) |
Iterable<T> |
findAll(org.springframework.data.domain.Sort sort) |
T |
findOne(ID id) |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(S entity) |
public SimpleKeyValueRepository(org.springframework.data.repository.core.EntityInformation<T,ID> metadata, KeyValueOperations operations)
metadata
- must not be null.operations
- must not be null.public Iterable<T> findAll(org.springframework.data.domain.Sort sort)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
public <S extends T> S save(S entity)
save
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public <S extends T> Iterable<S> save(Iterable<S> entities)
save
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public T findOne(ID id)
findOne
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public boolean exists(ID id)
exists
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public List<T> findAll()
findAll
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public Iterable<T> findAll(Iterable<ID> ids)
findAll
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public long count()
count
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public void delete(ID id)
delete
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public void delete(T entity)
delete
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public void delete(Iterable<? extends T> entities)
delete
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
public void deleteAll()
deleteAll
in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.