Package | Description |
---|---|
org.springframework.data.couchbase.config |
This package contains all classes needed for specific configuration of Spring Data Couchbase.
|
org.springframework.data.couchbase.repository.config |
This package contains the support classes to configure repositories in the context of Couchbase.
|
org.springframework.data.couchbase.repository.support |
This package contains the Couchbase implementations to support the Spring Data repository abstraction.
|
Modifier and Type | Method and Description |
---|---|
RepositoryOperationsMapping |
AbstractCouchbaseConfiguration.couchbaseRepositoryOperationsMapping(CouchbaseTemplate couchbaseTemplate) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractCouchbaseConfiguration.configureRepositoryOperationsMapping(RepositoryOperationsMapping mapping)
In order to customize the mapping between repositories/entity types to couchbase templates, use the provided
mapping's api (eg. in order to have different buckets backing different repositories).
|
Modifier and Type | Method and Description |
---|---|
RepositoryOperationsMapping |
RepositoryOperationsMapping.map(Class<?> repositoryInterface,
CouchbaseOperations couchbaseOperations)
Add a highest priority mapping that will associate a specific repository interface with a given
CouchbaseOperations . |
RepositoryOperationsMapping |
RepositoryOperationsMapping.mapEntity(Class<?> entityClass,
CouchbaseOperations couchbaseOperations)
Add a middle priority mapping that will associate any un-mapped repository that deals with the given domain type
Class with a given
CouchbaseOperations . |
RepositoryOperationsMapping |
RepositoryOperationsMapping.setDefault(CouchbaseOperations aDefault)
Change the default couchbase operations in an existing mapping.
|
Modifier and Type | Method and Description |
---|---|
protected CouchbaseRepositoryFactory |
CouchbaseRepositoryFactoryBean.getFactoryInstance(RepositoryOperationsMapping operationsMapping)
Get the factory instance for the operations.
|
void |
CouchbaseRepositoryFactoryBean.setCouchbaseOperationsMapping(RepositoryOperationsMapping mapping) |
Constructor and Description |
---|
CouchbaseRepositoryFactory(RepositoryOperationsMapping couchbaseOperationsMapping)
Create a new factory.
|
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.