@Service(value="blCriteriaTranslator") public class CriteriaTranslatorImpl extends Object implements CriteriaTranslator
| Modifier and Type | Field and Description |
|---|---|
protected SecurityVerifier |
adminSecurityService |
protected List<CriteriaTranslatorEventHandler> |
eventHandlers |
protected RowLevelSecurityService |
rowSecurityService |
| Constructor and Description |
|---|
CriteriaTranslatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPaging(javax.persistence.Query response,
Integer firstResult,
Integer maxResults) |
protected void |
addRestrictions(String ceilingEntity,
List<FilterMapping> filterMappings,
javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.Root original,
List<javax.persistence.criteria.Predicate> restrictions,
List<javax.persistence.criteria.Order> sorts)
Deprecated.
|
protected void |
addRestrictions(String ceilingEntity,
List<FilterMapping> filterMappings,
javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.Root original,
List<javax.persistence.criteria.Predicate> restrictions,
List<javax.persistence.criteria.Order> sorts,
javax.persistence.criteria.CriteriaQuery criteria) |
protected void |
addSorting(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
List<javax.persistence.criteria.Order> sorts,
FilterMapping filterMapping,
javax.persistence.criteria.Path path) |
protected javax.persistence.TypedQuery<Serializable> |
constructQuery(DynamicEntityDao dynamicEntityDao,
String ceilingEntity,
List<FilterMapping> filterMappings,
boolean isCount,
boolean isMax,
Integer firstResult,
Integer maxResults,
String maxField) |
protected Class<Serializable> |
determineRoot(DynamicEntityDao dynamicEntityDao,
Class<Serializable> ceilingMarker,
List<FilterMapping> filterMappings)
Determines the appropriate entity in this current class tree to use as the ceiling entity for the query.
|
protected ClassTree |
determineRootInternal(ClassTree root,
List<ClassTree> parents,
Class<?> classToCheck)
Because of the restriction described in
determineRoot(DynamicEntityDao, Class, List), we must check
that a class lies inside of the same tree as the current known root. |
protected Object |
getAppropriateLargeSortingValue(Class<?> javaType) |
javax.persistence.TypedQuery<Serializable> |
translateCountQuery(DynamicEntityDao dynamicEntityDao,
String ceilingEntity,
List<FilterMapping> filterMappings) |
javax.persistence.TypedQuery<Serializable> |
translateMaxQuery(DynamicEntityDao dynamicEntityDao,
String ceilingEntity,
List<FilterMapping> filterMappings,
String maxField) |
javax.persistence.TypedQuery<Serializable> |
translateQuery(DynamicEntityDao dynamicEntityDao,
String ceilingEntity,
List<FilterMapping> filterMappings,
Integer firstResult,
Integer maxResults) |
protected List<CriteriaTranslatorEventHandler> eventHandlers
protected RowLevelSecurityService rowSecurityService
protected SecurityVerifier adminSecurityService
public javax.persistence.TypedQuery<Serializable> translateCountQuery(DynamicEntityDao dynamicEntityDao, String ceilingEntity, List<FilterMapping> filterMappings)
translateCountQuery in interface CriteriaTranslatorpublic javax.persistence.TypedQuery<Serializable> translateMaxQuery(DynamicEntityDao dynamicEntityDao, String ceilingEntity, List<FilterMapping> filterMappings, String maxField)
translateMaxQuery in interface CriteriaTranslatorpublic javax.persistence.TypedQuery<Serializable> translateQuery(DynamicEntityDao dynamicEntityDao, String ceilingEntity, List<FilterMapping> filterMappings, Integer firstResult, Integer maxResults)
translateQuery in interface CriteriaTranslatorprotected Class<Serializable> determineRoot(DynamicEntityDao dynamicEntityDao, Class<Serializable> ceilingMarker, List<FilterMapping> filterMappings) throws NoPossibleResultsException
dynamicEntityDao - ceilingMarker - filterMappings - NoPossibleResultsExceptionprotected ClassTree determineRootInternal(ClassTree root, List<ClassTree> parents, Class<?> classToCheck)
determineRoot(DynamicEntityDao, Class, List), we must check
that a class lies inside of the same tree as the current known root. Consider the following situation:
Class C extends Class B, which extends Class A.
Class E extends Class D, which also extends Class A.
We can allow filtering on properties that are either all in C/B/A or all in E/D/A. Filtering on properties across
C/B and E/D will always produce no results given an AND style of joining the filtered properties.root - parents - classToCheck - protected javax.persistence.TypedQuery<Serializable> constructQuery(DynamicEntityDao dynamicEntityDao, String ceilingEntity, List<FilterMapping> filterMappings, boolean isCount, boolean isMax, Integer firstResult, Integer maxResults, String maxField)
protected void addPaging(javax.persistence.Query response,
Integer firstResult,
Integer maxResults)
@Deprecated protected void addRestrictions(String ceilingEntity, List<FilterMapping> filterMappings, javax.persistence.criteria.CriteriaBuilder criteriaBuilder, javax.persistence.criteria.Root original, List<javax.persistence.criteria.Predicate> restrictions, List<javax.persistence.criteria.Order> sorts)
addRestrictions(String, List, CriteriaBuilder, Root, List, List, CriteriaQuery)
It will be removed in Broadleaf version 3.1.0.ceilingEntity - filterMappings - criteriaBuilder - original - restrictions - sorts - protected void addRestrictions(String ceilingEntity, List<FilterMapping> filterMappings, javax.persistence.criteria.CriteriaBuilder criteriaBuilder, javax.persistence.criteria.Root original, List<javax.persistence.criteria.Predicate> restrictions, List<javax.persistence.criteria.Order> sorts, javax.persistence.criteria.CriteriaQuery criteria)
protected void addSorting(javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
List<javax.persistence.criteria.Order> sorts,
FilterMapping filterMapping,
javax.persistence.criteria.Path path)
Copyright © 2015. All rights reserved.