public class SimpleCouchbaseRepository<T,ID> extends CouchbaseRepositoryBase<T,ID> implements CouchbaseRepository<T,ID>
| Constructor and Description |
|---|
SimpleCouchbaseRepository(CouchbaseEntityInformation<T,String> entityInformation,
CouchbaseOperations couchbaseOperations,
Class<?> repositoryInterface)
Create a new Repository.
|
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
delete(T entity) |
void |
deleteAll() |
void |
deleteAll(Iterable<? extends T> entities) |
void |
deleteAllById(Iterable<? extends ID> ids) |
void |
deleteById(ID id) |
boolean |
existsById(ID id) |
List<T> |
findAll() |
org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable) |
List<T> |
findAll(com.couchbase.client.java.query.QueryScanConsistency queryScanConsistency) |
List<T> |
findAll(org.springframework.data.domain.Sort sort) |
List<T> |
findAllById(Iterable<ID> ids) |
Optional<T> |
findById(ID id) |
CouchbaseOperations |
getOperations() |
<S extends T> |
save(S entity) |
<S extends T> |
saveAll(Iterable<S> entities) |
getCollection, getEntityInformation, getScopeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityInformationpublic SimpleCouchbaseRepository(CouchbaseEntityInformation<T,String> entityInformation, CouchbaseOperations couchbaseOperations, Class<?> repositoryInterface)
entityInformation - the Metadata for the entity.couchbaseOperations - the reference to the template used.repositoryInterface - the repository interface being frontedpublic <S extends T> S save(S entity)
public List<T> findAllById(Iterable<ID> ids)
findAllById in interface CouchbaseRepository<T,ID>findAllById in interface org.springframework.data.repository.CrudRepository<T,ID>public boolean existsById(ID id)
public void deleteById(ID id)
public void delete(T entity)
public long count()
public void deleteAll()
public List<T> findAll(com.couchbase.client.java.query.QueryScanConsistency queryScanConsistency)
findAll in interface CouchbaseRepository<T,ID>public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
public CouchbaseOperations getOperations()
getOperations in interface CouchbaseRepository<T,ID>Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.