public class N1qlCouchbaseRepository<T,ID extends Serializable> extends SimpleCouchbaseRepository<T,ID> implements CouchbasePagingAndSortingRepository<T,ID>
CouchbasePagingAndSortingRepository
implementation. It uses N1QL for its PagingAndSortingRepository
method implementation.Constructor and Description |
---|
N1qlCouchbaseRepository(CouchbaseEntityInformation<T,String> metadata,
CouchbaseOperations couchbaseOperations)
Create a new Repository.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable) |
Iterable<T> |
findAll(org.springframework.data.domain.Sort sort) |
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, getCouchbaseOperations, getEntityInformation, save, save, setViewMetadataProvider
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCouchbaseOperations
public N1qlCouchbaseRepository(CouchbaseEntityInformation<T,String> metadata, CouchbaseOperations couchbaseOperations)
metadata
- the Metadata for the entity.couchbaseOperations
- the reference to the template used.public Iterable<T> findAll(org.springframework.data.domain.Sort sort)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.