public class CouchbaseRepositoryFactory extends RepositoryFactorySupport
SimpleCouchbaseRepository
instances.RepositoryFactorySupport.QueryExecutorMethodInterceptor
Constructor and Description |
---|
CouchbaseRepositoryFactory(CouchbaseOperations couchbaseOperations)
Create a new factory.
|
Modifier and Type | Method and Description |
---|---|
<T,ID extends Serializable> |
getEntityInformation(Class<T> domainClass)
Returns entity information based on the domain class.
|
protected QueryLookupStrategy |
getQueryLookupStrategy(QueryLookupStrategy.Key key) |
protected Class<?> |
getRepositoryBaseClass(RepositoryMetadata repositoryMetadata)
The base class for this repository.
|
protected Object |
getTargetRepository(RepositoryMetadata metadata)
Returns a new Repository based on the metadata.
|
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepositoryInformation, setBeanClassLoader, setNamedQueries, setQueryLookupStrategyKey, validate
public CouchbaseRepositoryFactory(CouchbaseOperations couchbaseOperations)
couchbaseOperations
- the template for the underlying actions.public <T,ID extends Serializable> CouchbaseEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation
in class RepositoryFactorySupport
T
- the value typeID
- the id type.domainClass
- the class for the entity.protected Object getTargetRepository(RepositoryMetadata metadata)
getTargetRepository
in class RepositoryFactorySupport
metadata
- the repository metadata.protected Class<?> getRepositoryBaseClass(RepositoryMetadata repositoryMetadata)
getRepositoryBaseClass
in class RepositoryFactorySupport
repositoryMetadata
- metadata for the repository.protected QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
getQueryLookupStrategy
in class RepositoryFactorySupport
Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.