T
- the domain classID
- the type of the Id of the domain classpublic class QueryDslSearchRepositoryImpl<T,ID extends Serializable> extends SearchRepositoryImpl<T,ID> implements QueryDslSearchRepository<T,ID>
QueryDslSearchRepository
implementation.QueryDslSearchRepository
implementations:
<repositories base-class="org.appng.persistence.repository.QueryDslSearchRepositoryImpl">See 4.6.2. Adding custom behavior to all repositories from the reference Documentation for further details.
domainClass, entityManager
Constructor and Description |
---|
QueryDslSearchRepositoryImpl(Class<T> domainType,
javax.persistence.EntityManager entityManager) |
QueryDslSearchRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,ID> entityInformation,
javax.persistence.EntityManager entityManager) |
Modifier and Type | Method and Description |
---|---|
long |
count(com.querydsl.core.types.Predicate predicate) |
boolean |
exists(com.querydsl.core.types.Predicate predicate) |
Iterable<T> |
findAll(com.querydsl.core.types.OrderSpecifier<?>... orders) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
com.querydsl.core.types.OrderSpecifier<?>... orders) |
org.springframework.data.domain.Page<T> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Sort sort) |
T |
findOne(com.querydsl.core.types.Predicate predicate) |
createSearchQuery, detach, findAll, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search
count, count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, save, saveAndFlush, setRepositoryMethodMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSearchQuery, detach, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
findAll
count, delete, delete, delete, deleteAll, exists, findOne, save
public QueryDslSearchRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,ID> entityInformation, javax.persistence.EntityManager entityManager)
public T findOne(com.querydsl.core.types.Predicate predicate)
findOne
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate)
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public org.springframework.data.domain.Page<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public long count(com.querydsl.core.types.Predicate predicate)
count
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort)
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public Iterable<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public boolean exists(com.querydsl.core.types.Predicate predicate)
exists
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
Copyright © 2011–2017 aiticon GmbH. All rights reserved.