Example usage for org.springframework.data.repository.core.support RepositoryFactoryInformation getQueryMethods

List of usage examples for org.springframework.data.repository.core.support RepositoryFactoryInformation getQueryMethods

Introduction

In this page you can find the example usage for org.springframework.data.repository.core.support RepositoryFactoryInformation getQueryMethods.

Prototype

List<QueryMethod> getQueryMethods();

Source Link

Document

Returns all QueryMethod s declared for that repository.

Usage

From source file:net.daum.clix.springframework.data.rest.client.repository.RestRepositories.java

/**
 * /** Returns the {@link QueryMethod}s contained in the repository managing
 * the given domain class./*from   www .ja  v a2s. c  om*/
 * 
 * @param domainClass
 *            must not be {@literal null}.
 * @return
 */
public List<QueryMethod> getQueryMethodsFor(Class<?> domainClass) {

    RepositoryFactoryInformation<Object, Serializable> information = getRepoInfoFor(domainClass);
    return information == null ? Collections.<QueryMethod>emptyList() : information.getQueryMethods();
}