org.springframework.data.gemfire.repository.support
Class SimpleGemfireRepository<T,ID extends Serializable>
java.lang.Object
org.springframework.data.gemfire.repository.support.SimpleGemfireRepository<T,ID>
- All Implemented Interfaces:
- GemfireRepository<T,ID>, org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>
public class SimpleGemfireRepository<T,ID extends Serializable>
- extends Object
- implements GemfireRepository<T,ID>
Basic repository implementation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleGemfireRepository
public SimpleGemfireRepository(GemfireTemplate template,
org.springframework.data.repository.core.EntityInformation<T,ID> entityInformation)
- Creates a new
SimpleGemfireRepository.
- Parameters:
template - must not be null.entityInformation - must not be null.
save
public <U extends T> U save(U entity)
- Specified by:
save in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
save
public <U extends T> Iterable<U> save(Iterable<U> entities)
- Specified by:
save in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
findOne
public T findOne(ID id)
- Specified by:
findOne in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
exists
public boolean exists(ID id)
- Specified by:
exists in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
findAll
public Collection<T> findAll()
- Specified by:
findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
findAll
public Iterable<T> findAll(org.springframework.data.domain.Sort sort)
- Description copied from interface:
GemfireRepository
- Returns all entities sorted by the given options.
- Specified by:
findAll in interface GemfireRepository<T,ID extends Serializable>
- Parameters:
sort - the Spring Data Commons Sort type defining the ordering criteria.
- Returns:
- all entities sorted by the given options.
- See Also:
PagingAndSortingRepository.findAll(org.springframework.data.domain.Sort),
Sort,
Iterable
findAll
public Collection<T> findAll(Iterable<ID> ids)
- Specified by:
findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
count
public long count()
- Specified by:
count in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
delete
public void delete(T entity)
- Specified by:
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
delete
public void delete(Iterable<? extends T> entities)
- Specified by:
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
deleteAll
public void deleteAll()
- Specified by:
deleteAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
delete
public void delete(ID id)
- Specified by:
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>
save
public T save(Wrapper<T,ID> wrapper)
- Specified by:
save in interface GemfireRepository<T,ID extends Serializable>