public interface EntityRepository<T,ID extends Serializable>
Modifier and Type | Method and Description |
---|---|
long |
count() |
long |
count(Object queryMethod) |
void |
delete(ID id) |
void |
delete(Iterable<? extends T> entities) |
void |
delete(T entity) |
long |
deleteAll() |
long |
deleteAll(Object queryMethod) |
<R,X> R |
execute(TemplateCallback<R,X> callback) |
boolean |
exists(ID id) |
boolean |
exists(T entity) |
List<T> |
findAll() |
List<T> |
findAll(Object queryMethod) |
org.springframework.data.domain.Page<T> |
findAll(Object queryMethod,
org.springframework.data.domain.Pageable pageable) |
List<T> |
findAll(Object queryMethod,
org.springframework.data.domain.Sort sort) |
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) |
T |
findOne(T entity) |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(S entity) |
boolean exists(T entity)
boolean exists(ID id)
<S extends T> S save(S entity)
void delete(ID id)
void delete(T entity)
long deleteAll()
long count()
org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
long deleteAll(Object queryMethod)
long count(Object queryMethod)
org.springframework.data.domain.Page<T> findAll(Object queryMethod, org.springframework.data.domain.Pageable pageable)
<R,X> R execute(TemplateCallback<R,X> callback)
Copyright © 2010-2014 U2ware. All Rights Reserved.