Class PartTreeJpaQuery
java.lang.Object
org.springframework.data.jpa.repository.query.AbstractJpaQuery
org.springframework.data.jpa.repository.query.PartTreeJpaQuery
- All Implemented Interfaces:
RepositoryQuery
A
AbstractJpaQuery implementation based on a PartTree.- Author:
- Oliver Gierke, Thomas Darimont, Christoph Strobl, Jens Schauder, Mark Paluch, Сергей Цыпанов
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractJpaQuery
AbstractJpaQuery.TupleConverter -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.TypedQuery<Long> Creates aTypedQueryfor counting using the given values.jakarta.persistence.QuerydoCreateQuery(JpaParametersParameterAccessor accessor) Creates aQueryinstance for the given values.protected JpaQueryExecutiongetExecution(JpaParametersParameterAccessor accessor) booleanReturns true if the query has a dedicated count query associated with it or false if the count query shall be derived.Methods inherited from class AbstractJpaQuery
applyHints, applyQueryHint, createCountQuery, createQuery, execute, getEntityManager, getMetamodel, getQueryMethod, getTypeToRead
-
Method Details
-
hasDeclaredCountQuery
public boolean hasDeclaredCountQuery()Description copied from class:AbstractJpaQueryReturns true if the query has a dedicated count query associated with it or false if the count query shall be derived.- Specified by:
hasDeclaredCountQueryin classAbstractJpaQuery- Returns:
- true if the query has a dedicated count query false if the * count query is derived.
-
doCreateQuery
Description copied from class:AbstractJpaQueryCreates aQueryinstance for the given values.- Specified by:
doCreateQueryin classAbstractJpaQuery- Parameters:
accessor- must not be null.- Returns:
-
doCreateCountQuery
public jakarta.persistence.TypedQuery<Long> doCreateCountQuery(JpaParametersParameterAccessor accessor) Description copied from class:AbstractJpaQueryCreates aTypedQueryfor counting using the given values.- Specified by:
doCreateCountQueryin classAbstractJpaQuery- Parameters:
accessor- must not be null.- Returns:
-
getExecution
- Overrides:
getExecutionin classAbstractJpaQuery
-