public class SimpleGemfireRepository<T,ID> extends Object implements GemfireRepository<T,ID>
Serializable,
GemfireTemplate,
GemfireRepository,
Cache,
Region| Constructor and Description |
|---|
SimpleGemfireRepository(GemfireTemplate template,
EntityInformation<T,ID> entityInformation)
Creates a new
SimpleGemfireRepository. |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
delete(T entity) |
void |
deleteAll() |
void |
deleteAll(Iterable<? extends T> entities) |
void |
deleteById(ID id) |
boolean |
existsById(ID id) |
Collection<T> |
findAll() |
Iterable<T> |
findAll(Sort sort)
Returns all entities sorted by the given options.
|
Collection<T> |
findAllById(Iterable<ID> ids) |
Optional<T> |
findById(ID id) |
<U extends T> |
save(U entity) |
T |
save(Wrapper<T,ID> wrapper) |
<U extends T> |
saveAll(Iterable<U> entities) |
public SimpleGemfireRepository(GemfireTemplate template, EntityInformation<T,ID> entityInformation)
SimpleGemfireRepository.template - must not be null.entityInformation - must not be null.public <U extends T> U save(U entity)
save in interface CrudRepository<T,ID>public <U extends T> Iterable<U> saveAll(Iterable<U> entities)
saveAll in interface CrudRepository<T,ID>public long count()
count in interface CrudRepository<T,ID>public boolean existsById(ID id)
existsById in interface CrudRepository<T,ID>public Optional<T> findById(ID id)
findById in interface CrudRepository<T,ID>public Collection<T> findAll()
findAll in interface CrudRepository<T,ID>public Iterable<T> findAll(Sort sort)
GemfireRepositoryfindAll in interface GemfireRepository<T,ID>sort - the Spring Data Commons Sort type defining the ordering criteria.PagingAndSortingRepository.findAll(org.springframework.data.domain.Sort),
Sort,
Iterablepublic Collection<T> findAllById(Iterable<ID> ids)
findAllById 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 deleteAll(Iterable<? extends T> entities)
deleteAll in interface CrudRepository<T,ID>public void deleteAll()
deleteAll in interface CrudRepository<T,ID>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.