public class SimpleGemfireRepository<T,ID extends Serializable> extends Object implements GemfireRepository<T,ID>
Serializable,
GemfireTemplate,
GemfireRepository,
Region| Constructor and Description |
|---|
SimpleGemfireRepository(GemfireTemplate template,
org.springframework.data.repository.core.EntityInformation<T,ID> entityInformation)
Creates a new
SimpleGemfireRepository. |
| 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) |
Collection<T> |
findAll() |
Collection<T> |
findAll(Iterable<ID> ids) |
Iterable<T> |
findAll(org.springframework.data.domain.Sort sort)
Returns all entities sorted by the given options.
|
T |
findOne(ID id) |
<U extends T> |
save(Iterable<U> entities) |
<U extends T> |
save(U entity) |
T |
save(Wrapper<T,ID> wrapper) |
public SimpleGemfireRepository(GemfireTemplate template, org.springframework.data.repository.core.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 org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public <U extends T> Iterable<U> save(Iterable<U> entities)
save in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public T save(Wrapper<T,ID> wrapper)
save in interface GemfireRepository<T,ID extends Serializable>public long count()
count 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 T findOne(ID id)
findOne in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public Collection<T> findAll()
findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public Iterable<T> findAll(org.springframework.data.domain.Sort sort)
GemfireRepositoryfindAll in interface GemfireRepository<T,ID extends Serializable>sort - the Spring Data Commons Sort type defining the ordering criteria.PagingAndSortingRepository.findAll(org.springframework.data.domain.Sort),
Sort,
Iterablepublic Collection<T> findAll(Iterable<ID> ids)
findAll 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>