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
ConstructorDescriptionSimpleCouchbaseRepository
(CouchbaseEntityInformation<T, String> entityInformation, CouchbaseOperations couchbaseOperations, Class<?> repositoryInterface) Create a new Repository. -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
void
void
void
void
deleteAllById
(Iterable<? extends ID> ids) void
deleteById
(ID id) boolean
existsById
(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, getScope
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
save
in interfaceCrudRepository<T,
ID>
-
saveAll
- Specified by:
saveAll
in interfaceCrudRepository<T,
ID>
-
findById
- Specified by:
findById
in interfaceCrudRepository<T,
ID>
-
findAllById
- Specified by:
findAllById
in interfaceCouchbaseRepository<T,
ID> - Specified by:
findAllById
in interfaceCrudRepository<T,
ID>
-
existsById
- Specified by:
existsById
in interfaceCrudRepository<T,
ID>
-
deleteById
- Specified by:
deleteById
in interfaceCrudRepository<T,
ID>
-
delete
- Specified by:
delete
in interfaceCrudRepository<T,
ID>
-
deleteAllById
- Specified by:
deleteAllById
in interfaceCrudRepository<T,
ID>
-
deleteAll
- Specified by:
deleteAll
in interfaceCrudRepository<T,
ID>
-
count
public long count()- Specified by:
count
in interfaceCrudRepository<T,
ID>
-
deleteAll
public void deleteAll()- Specified by:
deleteAll
in interfaceCrudRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfaceCouchbaseRepository<T,
ID> - Specified by:
findAll
in interfaceCrudRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfaceCouchbaseRepository<T,
ID> - Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfaceCouchbaseRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID>
-
getOperations
- Specified by:
getOperations
in interfaceCouchbaseRepository<T,
ID>
-
getReactiveTemplate
- Specified by:
getReactiveTemplate
in classCouchbaseRepositoryBase<T,
ID>
-