Class CustomSelection
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.CustomSelection
Class to be used to specify a custom selection for a 
CriteriaQueryBuilder.- 
Constructor SummaryConstructorsConstructorDescriptionCustomSelection(BinaryDataAccessor binaryDataAccessor, TypeManager typeManager, FieldResolver fieldResolver, DataModel dataModel, EntityModel rootModel, List<QueryBuilderInterceptor> interceptors, Map<String, ParameterProvider<?>> parameterProviders, PredicateFactory predicateFactory, ParameterCollector parameterCollector, org.hibernate.Session session, CriteriaBuilderWrapper criteriaBuilder, jakarta.persistence.criteria.Root<?> queryRoot) 
- 
Method SummaryModifier and TypeMethodDescriptionAdd a path that should be selected from the query.Add paths that should be selected from the query.<RT> voidmapResults(List<RT> target, List<Object[]> queryResult, ResultRowMapper<RT> mapper) intjakarta.persistence.criteria.Selection<?> Combine all selected paths into a JPASelectioninstance.
- 
Constructor Details- 
CustomSelectionpublic CustomSelection(BinaryDataAccessor binaryDataAccessor, TypeManager typeManager, FieldResolver fieldResolver, DataModel dataModel, EntityModel rootModel, List<QueryBuilderInterceptor> interceptors, Map<String, ParameterProvider<?>> parameterProviders, PredicateFactory predicateFactory, ParameterCollector parameterCollector, org.hibernate.Session session, CriteriaBuilderWrapper criteriaBuilder, jakarta.persistence.criteria.Root<?> queryRoot) 
 
- 
- 
Method Details- 
addPathsAdd paths that should be selected from the query.- See Also:
 
- 
addPathAdd a path that should be selected from the query. The path can be nested or point to a to-many field. For example: - 'firstname' - 'relAddress.street' - 'relAddress.relType.unique_id' - 'relUser'
- 
toJpaSelectionpublic jakarta.persistence.criteria.Selection<?> toJpaSelection()Combine all selected paths into a JPASelectioninstance.
- 
numberOfSelectedPathspublic int numberOfSelectedPaths()
- 
mapResultspublic <RT> void mapResults(List<RT> target, List<Object[]> queryResult, ResultRowMapper<RT> mapper) 
 
-