|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.jpa.repository.support.QueryDslRepositorySupport
@Repository public abstract class QueryDslRepositorySupport
Base class for implementing repositories using QueryDsl library.
Constructor Summary | |
---|---|
QueryDslRepositorySupport()
|
Method Summary | ||
---|---|---|
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
|
getBuilder(Class<T> type)
Returns a PathBuilder for the given type. |
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryDslRepositorySupport()
Method Detail |
---|
public void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManager
.
entityManager
- must not be null@PostConstruct public void validate()
protected com.mysema.query.jpa.JPQLQuery from(com.mysema.query.types.EntityPath<?>... paths)
JPQLQuery
.
protected com.mysema.query.dml.DeleteClause<com.mysema.query.jpa.impl.JPADeleteClause> delete(com.mysema.query.types.EntityPath<?> path)
DeleteClause
.
path
-
protected com.mysema.query.dml.UpdateClause<com.mysema.query.jpa.impl.JPAUpdateClause> update(com.mysema.query.types.EntityPath<?> path)
UpdateClause
.
path
-
protected <T> com.mysema.query.types.path.PathBuilder<T> getBuilder(Class<T> type)
PathBuilder
for the given type.
T
- type
-
|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |