@Repository public abstract class QuerydslRepositorySupport extends Object
| Constructor and Description |
|---|
QuerydslRepositorySupport(Class<?> domainClass)
Creates a new
QuerydslRepositorySupport instance for the given domain type. |
| Modifier and Type | Method and Description |
|---|---|
protected com.querydsl.core.dml.DeleteClause<com.querydsl.jpa.impl.JPADeleteClause> |
delete(com.querydsl.core.types.EntityPath<?> path)
Returns a fresh
DeleteClause. |
protected com.querydsl.jpa.JPQLQuery<Object> |
from(com.querydsl.core.types.EntityPath<?>... paths)
Returns a fresh
JPQLQuery. |
protected <T> com.querydsl.jpa.JPQLQuery<T> |
from(com.querydsl.core.types.EntityPath<T> path)
Returns a
JPQLQuery for the given EntityPath. |
protected <T> com.querydsl.core.types.dsl.PathBuilder<T> |
getBuilder()
Returns a
PathBuilder for the configured domain type. |
protected javax.persistence.EntityManager |
getEntityManager()
Returns the
EntityManager. |
protected Querydsl |
getQuerydsl()
Returns the underlying Querydsl helper instance.
|
void |
setEntityManager(javax.persistence.EntityManager entityManager)
Setter to inject
EntityManager. |
protected com.querydsl.core.dml.UpdateClause<com.querydsl.jpa.impl.JPAUpdateClause> |
update(com.querydsl.core.types.EntityPath<?> path)
Returns a fresh
UpdateClause. |
void |
validate()
Callback to verify configuration.
|
public QuerydslRepositorySupport(Class<?> domainClass)
QuerydslRepositorySupport instance for the given domain type.domainClass - must not be null.@Autowired public void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManager.entityManager - must not be null.@PostConstruct public void validate()
@Nullable protected javax.persistence.EntityManager getEntityManager()
EntityManager.protected com.querydsl.jpa.JPQLQuery<Object> from(com.querydsl.core.types.EntityPath<?>... paths)
JPQLQuery.paths - must not be null.JPQLQuery.protected <T> com.querydsl.jpa.JPQLQuery<T> from(com.querydsl.core.types.EntityPath<T> path)
JPQLQuery for the given EntityPath.path - must not be null.protected com.querydsl.core.dml.DeleteClause<com.querydsl.jpa.impl.JPADeleteClause> delete(com.querydsl.core.types.EntityPath<?> path)
DeleteClause.path - DeleteClause.protected com.querydsl.core.dml.UpdateClause<com.querydsl.jpa.impl.JPAUpdateClause> update(com.querydsl.core.types.EntityPath<?> path)
UpdateClause.path - UpdateClause.protected <T> com.querydsl.core.types.dsl.PathBuilder<T> getBuilder()
PathBuilder for the configured domain type.T - PathBuilder.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.