Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Spring Data Commons
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.data.repository
Interface PagingAndSortingRepository<T,ID extends Serializable>

All Superinterfaces:
  CrudRepository<T,ID>, Repository<T,ID>

    @NoRepositoryBean
    public interface PagingAndSortingRepository<T,ID extends Serializable>

extends CrudRepository<T,ID>

Extension of `CrudRepository` to provide additional methods to retrieve entities using the pagination and sorting abstraction.

Author:
  Oliver Gierke
See Also:
  `Sort`, `Pageable`, `Page`

Method Summary
`Page<T>` | `findAll(Pageable pageable)` Returns a `Page` of entities meeting the paging restriction provided in the `Pageable` object.
`Iterable<T>` | `findAll(Sort sort)` Returns all entities sorted by the given options.

Methods inherited from interface org.springframework.data.repository.CrudRepository
`count, delete, delete, delete, deleteAll, exists, findAll, findOne, save, save`

Method Detail

### findAll

    Iterable<T> findAll(Sort sort)

  Returns all entities sorted by the given options.

  Parameters:
    `sort` -
  Returns:
    all entities sorted by the given options

### findAll

    Page<T> findAll(Pageable pageable)

  Returns a `Page` of entities meeting the paging restriction provided in the `Pageable` object.

  Parameters:
    `pageable` -
  Returns:
    a page of entities

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Spring Data Commons
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.