@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.mysema.query.dml.DeleteClause<com.mysema.query.jpa.impl.JPADeleteClause> |
delete(com.mysema.query.types.EntityPath<?> path)
Returns a fresh
DeleteClause . |
protected com.mysema.query.jpa.JPQLQuery |
from(com.mysema.query.types.EntityPath<?>... paths)
Returns a fresh
JPQLQuery . |
protected <T> com.mysema.query.types.path.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.mysema.query.dml.UpdateClause<com.mysema.query.jpa.impl.JPAUpdateClause> |
update(com.mysema.query.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.public void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManager
.entityManager
- must not be null@PostConstruct public void validate()
protected javax.persistence.EntityManager getEntityManager()
EntityManager
.protected com.mysema.query.jpa.JPQLQuery from(com.mysema.query.types.EntityPath<?>... paths)
JPQLQuery
.JPQLQuery
.protected com.mysema.query.dml.DeleteClause<com.mysema.query.jpa.impl.JPADeleteClause> delete(com.mysema.query.types.EntityPath<?> path)
DeleteClause
.path
- DeleteClause
.protected com.mysema.query.dml.UpdateClause<com.mysema.query.jpa.impl.JPAUpdateClause> update(com.mysema.query.types.EntityPath<?> path)
UpdateClause
.path
- UpdateClause
.protected <T> com.mysema.query.types.path.PathBuilder<T> getBuilder()
PathBuilder
for the configured domain type.T
- PathBuilder
.protected Querydsl getQuerydsl()
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.