Spring Data Couchbase

org.springframework.data.couchbase.repository.support
Class CouchbaseRepositoryFactory

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactorySupport
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
RepositoryFactorySupport.QueryExecutorMethodInterceptor
 
Constructor Summary
CouchbaseRepositoryFactory(CouchbaseOperations couchbaseOperations)
          Create a new factory.
 
Method Summary
<T,ID extends Serializable>
CouchbaseEntityInformation<T,ID>
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.
 
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepositoryInformation, setBeanClassLoader, setNamedQueries, setQueryLookupStrategyKey, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CouchbaseRepositoryFactory

public CouchbaseRepositoryFactory(CouchbaseOperations couchbaseOperations)
Create a new factory.

Parameters:
couchbaseOperations - the template for the underlying actions.
Method Detail

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 type
ID - 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

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.