org.springframework.data.couchbase.repository.support
Class CouchbaseRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.couchbase.repository.support.CouchbaseRepositoryFactory
- All Implemented Interfaces:
- Aware, BeanClassLoaderAware
public class CouchbaseRepositoryFactory
- extends RepositoryFactorySupport
Factory to create SimpleCouchbaseRepository instances.
- Author:
- Michael Nitschinger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CouchbaseRepositoryFactory
public CouchbaseRepositoryFactory(CouchbaseOperations couchbaseOperations)
- Create a new factory.
- Parameters:
couchbaseOperations - the template for the underlying actions.
getEntityInformation
public <T,ID extends Serializable> CouchbaseEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
- Returns entity information based on the domain class.
- Specified by:
getEntityInformation in class RepositoryFactorySupport
- Type Parameters:
T - the value typeID - the id type.- Parameters:
domainClass - the class for the entity.
- Returns:
- entity information for that domain class.
getTargetRepository
protected Object getTargetRepository(RepositoryMetadata metadata)
- Returns a new Repository based on the metadata.
- Specified by:
getTargetRepository in class RepositoryFactorySupport
- Parameters:
metadata - the repository metadata.
- Returns:
- a new created repository.
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(RepositoryMetadata repositoryMetadata)
- The base class for this repository.
- Specified by:
getRepositoryBaseClass in class RepositoryFactorySupport
- Parameters:
repositoryMetadata - metadata for the repository.
- Returns:
- the base class.
getQueryLookupStrategy
protected QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
- Overrides:
getQueryLookupStrategy in class RepositoryFactorySupport
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.