Class CriteriaQueryBuilderImpl.AbstractCriteriaQueryWrapper
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.CriteriaQueryBuilderImpl.AbstractCriteriaQueryWrapper
- All Implemented Interfaces:
CriteriaQueryWrapper<RT>
- Direct Known Subclasses:
AbstractPathQueryBuilder.CustomSelectionCriteriaQueryWrapper
- Enclosing class:
CriteriaQueryBuilderImpl<QB extends CriteriaQueryBuilder<QB,
RT, QW>, RT, QW extends CriteriaQueryWrapper<RT>>
protected abstract class CriteriaQueryBuilderImpl.AbstractCriteriaQueryWrapper
extends Object
implements CriteriaQueryWrapper<RT>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.persistence.criteria.Selection
<Object[]> createExpandedSelection
(jakarta.persistence.criteria.Selection<?> originalSelection, List<jakarta.persistence.criteria.Selection<?>> additionalSelectionPaths) protected List
<jakarta.persistence.criteria.Order> distinct
(boolean value) protected jakarta.persistence.criteria.Selection
<Object[]> expandSelection
(List<jakarta.persistence.criteria.Order> order) If we use 'DISTINCT', selection needs to include all columns used in 'ORDER BY'.protected abstract jakarta.persistence.criteria.Selection
<?> protected abstract boolean
isPartOfSelection
(jakarta.persistence.criteria.Path<?> path) uniqueResultOptional
(jakarta.persistence.LockModeType lockMode) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.hibernate.query.builder.CriteriaQueryWrapper
firstResult, uniqueResult, uniqueResult
-
Field Details
-
distinct
protected boolean distinct
-
-
Constructor Details
-
AbstractCriteriaQueryWrapper
protected AbstractCriteriaQueryWrapper()
-
-
Method Details
-
getSelection
protected abstract jakarta.persistence.criteria.Selection<?> getSelection() -
createMapperFunction
-
getResultList
- Specified by:
getResultList
in interfaceCriteriaQueryWrapper<RT>
-
distinct
- Specified by:
distinct
in interfaceCriteriaQueryWrapper<RT>
-
uniqueResultOptional
- Specified by:
uniqueResultOptional
in interfaceCriteriaQueryWrapper<RT>
-
uniqueResultOptional
- Specified by:
uniqueResultOptional
in interfaceCriteriaQueryWrapper<RT>
-
firstResultOptional
- Specified by:
firstResultOptional
in interfaceCriteriaQueryWrapper<RT>
-
expandSelection
protected jakarta.persistence.criteria.Selection<Object[]> expandSelection(List<jakarta.persistence.criteria.Order> order) If we use 'DISTINCT', selection needs to include all columns used in 'ORDER BY'. If the order by column is not part of the selection it needs to be explicitly added to the selection. -
isPartOfSelection
protected abstract boolean isPartOfSelection(jakarta.persistence.criteria.Path<?> path) -
determineOrderBy
-
createExpandedSelection
-