Class SimpleCouchbaseRepository<T,ID>
java.lang.Object
org.springframework.data.couchbase.repository.support.CouchbaseRepositoryBase<T,ID>
org.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository<T,ID>
- All Implemented Interfaces:
CouchbaseRepository<T,,ID> CrudRepository<T,,ID> PagingAndSortingRepository<T,,ID> Repository<T,ID>
public class SimpleCouchbaseRepository<T,ID>
extends CouchbaseRepositoryBase<T,ID>
implements CouchbaseRepository<T,ID>
Repository base implementation for Couchbase.
- Author:
- Michael Nitschinger, Mark Paluch, Jens Schauder, Michael Reiche
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleCouchbaseRepository(CouchbaseEntityInformation<T, String> entityInformation, CouchbaseOperations couchbaseOperations, Class<?> repositoryInterface) Create a new Repository. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()voidvoidvoidvoiddeleteAllById(Iterable<? extends ID> ids) voiddeleteById(ID id) booleanexistsById(ID id) findAll()findAll(com.couchbase.client.java.query.QueryScanConsistency queryScanConsistency) findAllById(Iterable<ID> ids) protected ReactiveCouchbaseTemplate<S extends T>
Ssave(S entity) Methods inherited from class org.springframework.data.couchbase.repository.support.CouchbaseRepositoryBase
getCollection, getEntityInformation, getRepositoryInterface, getScopeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.couchbase.repository.CouchbaseRepository
getEntityInformation
-
Constructor Details
-
SimpleCouchbaseRepository
public SimpleCouchbaseRepository(CouchbaseEntityInformation<T, String> entityInformation, CouchbaseOperations couchbaseOperations, Class<?> repositoryInterface) Create a new Repository.- Parameters:
entityInformation- the Metadata for the entity.couchbaseOperations- the reference to the template used.repositoryInterface- the repository interface being fronted
-
-
Method Details
-
save
- Specified by:
savein interfaceCrudRepository<T,ID>
-
saveAll
- Specified by:
saveAllin interfaceCrudRepository<T,ID>
-
findById
- Specified by:
findByIdin interfaceCrudRepository<T,ID>
-
findAllById
- Specified by:
findAllByIdin interfaceCouchbaseRepository<T,ID> - Specified by:
findAllByIdin interfaceCrudRepository<T,ID>
-
existsById
- Specified by:
existsByIdin interfaceCrudRepository<T,ID>
-
deleteById
- Specified by:
deleteByIdin interfaceCrudRepository<T,ID>
-
delete
- Specified by:
deletein interfaceCrudRepository<T,ID>
-
deleteAllById
- Specified by:
deleteAllByIdin interfaceCrudRepository<T,ID>
-
deleteAll
- Specified by:
deleteAllin interfaceCrudRepository<T,ID>
-
count
public long count()- Specified by:
countin interfaceCrudRepository<T,ID>
-
deleteAll
public void deleteAll()- Specified by:
deleteAllin interfaceCrudRepository<T,ID>
-
findAll
- Specified by:
findAllin interfaceCouchbaseRepository<T,ID> - Specified by:
findAllin interfaceCrudRepository<T,ID>
-
findAll
- Specified by:
findAllin interfaceCouchbaseRepository<T,ID> - Specified by:
findAllin interfacePagingAndSortingRepository<T,ID>
-
findAll
- Specified by:
findAllin interfaceCouchbaseRepository<T,ID>
-
findAll
- Specified by:
findAllin interfacePagingAndSortingRepository<T,ID>
-
getOperations
- Specified by:
getOperationsin interfaceCouchbaseRepository<T,ID>
-
getReactiveTemplate
- Specified by:
getReactiveTemplatein classCouchbaseRepositoryBase<T,ID>
-