@NoRepositoryBean public interface RepositoryOperations<T extends Model<ID>,ID extends Serializable> extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>, ModelSupport<T>
PagingAndSortingRepository, but with some additions
to support dynamic queries.| Modifier and Type | Method and Description |
|---|---|
long |
count(Iterable<QueryCriteria> queryCriterias)
Returns a count of all records that satify the requested criteria.
|
Iterable<Object> |
distinct(String field)
Returns a unsorted list of distinct values of the requested field.
|
Iterable<Object> |
distinct(String field,
Iterable<QueryCriteria> queryCriterias)
Returns a unsorted list of distinct values of the requested field, filtered using a
QueryCriteria
based query. |
Iterable<T> |
find(Iterable<QueryCriteria> queryCriterias)
Searches for all records that satisfy the requested criteria.
|
org.springframework.data.domain.Page<T> |
find(Iterable<QueryCriteria> queryCriterias,
org.springframework.data.domain.Pageable pageable)
Searches for all records that satisfy the requested criteria, and returns them as a paged
collection.
|
Iterable<T> |
find(Iterable<QueryCriteria> queryCriterias,
org.springframework.data.domain.Sort sort)
Searches for all records that satisfy the requested criteria, and returns them in the
requested order.
|
<S extends T> |
insert(Iterable<S> entities)
Creates multiple new records and returns their updated representations.
|
<S extends T> |
insert(S entity)
Creates a new record in the repository and returns the updated model object.
|
<S extends T> |
update(Iterable<S> entities)
Updates multiple records and returns their instances.
|
<S extends T> |
update(S entity)
Updates an existing record in the repository and returns its instance.
|
findAll, findAllcount, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, savegetModelIterable<T> find(Iterable<QueryCriteria> queryCriterias)
queryCriterias - QueryCriteriaT records.Iterable<T> find(Iterable<QueryCriteria> queryCriterias, org.springframework.data.domain.Sort sort)
queryCriterias - QueryCriteriasort - SortT records.org.springframework.data.domain.Page<T> find(Iterable<QueryCriteria> queryCriterias, org.springframework.data.domain.Pageable pageable)
queryCriterias - QueryCriteriapageable - PageablePage containing the desired set of records.long count(Iterable<QueryCriteria> queryCriterias)
queryCriterias - QueryCriteriaT records.Iterable<Object> distinct(String field)
field - Model field name.field.Iterable<Object> distinct(String field, Iterable<QueryCriteria> queryCriterias)
QueryCriteria
based query.field - Model field name.queryCriterias - Query criteria to filter the field values by.field.<S extends T> S insert(S entity)
entity - instance of T to be persisted.<S extends T> Iterable<S> insert(Iterable<S> entities)
entities - collection of records to be persisted.<S extends T> S update(S entity)
entity - updated record to be persisted in the repository.Copyright © 2016. All rights reserved.