|
Spring Data Couchbase | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.couchbase.repository.support.SimpleCouchbaseRepository<T,ID>
public class SimpleCouchbaseRepository<T,ID extends Serializable>
Repository base implementation for Couchbase.
| Constructor Summary | |
|---|---|
SimpleCouchbaseRepository(CouchbaseEntityInformation<T,String> metadata,
CouchbaseOperations couchbaseOperations)
Create a new Repository. |
|
| Method Summary | ||
|---|---|---|
long |
count()
|
|
void |
delete(ID id)
|
|
void |
delete(Iterable<? extends T> entities)
|
|
void |
delete(T entity)
|
|
void |
deleteAll()
|
|
boolean |
exists(ID id)
|
|
Iterable<T> |
findAll()
|
|
Iterable<T> |
findAll(Iterable<ID> ids)
|
|
T |
findOne(ID id)
|
|
protected CouchbaseOperations |
getCouchbaseOperations()
Returns the underlying operation template. |
|
protected CouchbaseEntityInformation<T,String> |
getEntityInformation()
Returns the information for the underlying template. |
|
|
save(Iterable<S> entities)
|
|
|
save(S entity)
|
|
void |
setViewMetadataProvider(ViewMetadataProvider viewMetadataProvider)
Configures a custom ViewMetadataProvider to be used to detect Views to be applied to queries. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCouchbaseRepository(CouchbaseEntityInformation<T,String> metadata,
CouchbaseOperations couchbaseOperations)
metadata - the Metadata for the entity.couchbaseOperations - the reference to the template used.| Method Detail |
|---|
public void setViewMetadataProvider(ViewMetadataProvider viewMetadataProvider)
ViewMetadataProvider to be used to detect Views to be applied to queries.
viewMetadataProvider - that is used to lookup any annotated View on a query method.public <S extends T> S save(S entity)
save in interface CrudRepository<T,ID extends Serializable>public <S extends T> Iterable<S> save(Iterable<S> entities)
save in interface CrudRepository<T,ID extends Serializable>public T findOne(ID id)
findOne in interface CrudRepository<T,ID extends Serializable>public boolean exists(ID id)
exists in interface CrudRepository<T,ID extends Serializable>public void delete(ID id)
delete in interface CrudRepository<T,ID extends Serializable>public void delete(T entity)
delete in interface CrudRepository<T,ID extends Serializable>public void delete(Iterable<? extends T> entities)
delete in interface CrudRepository<T,ID extends Serializable>public Iterable<T> findAll()
findAll in interface CrudRepository<T,ID extends Serializable>public Iterable<T> findAll(Iterable<ID> ids)
findAll in interface CrudRepository<T,ID extends Serializable>public long count()
count in interface CrudRepository<T,ID extends Serializable>public void deleteAll()
deleteAll in interface CrudRepository<T,ID extends Serializable>protected CouchbaseOperations getCouchbaseOperations()
protected CouchbaseEntityInformation<T,String> getEntityInformation()
|
Spring Data Couchbase | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||