@Repository(value="blTreeListGridBuilderDao") public class TreeListGridBuilderDaoImpl extends Object implements TreeListGridBuilderDao
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
protected int |
pageSize |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
Constructor and Description |
---|
TreeListGridBuilderDaoImpl() |
Modifier and Type | Method and Description |
---|---|
protected javax.persistence.criteria.Predicate |
buildNotInClause(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Path path,
List<Long> ids) |
List<javax.persistence.criteria.Predicate> |
buildNotInClauseList(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Path path,
List<Long> subCategoryIds)
Helper method for building a list of Predicates to exclude the given subCategoryIds
|
List<Long> |
retrieveIdsOfAllSubCategories()
Returns the Ids of all Categories that are Subcategories
|
Long |
retrieveRowIndexForRootColumn(org.broadleafcommerce.core.catalog.domain.Category category)
Returns the row index (vertical placement) of the target category.
|
Long |
retrieveRowIndexForTreeColumn(org.broadleafcommerce.core.catalog.domain.CategoryXref categoryXref)
Returns the row index (vertical placement) of the target category.
|
@Value(value="${fetch.collection.batch.pageSize:800}") protected int pageSize
protected javax.persistence.EntityManager em
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
public Long retrieveRowIndexForRootColumn(org.broadleafcommerce.core.catalog.domain.Category category)
TreeListGridBuilderDao
retrieveRowIndexForRootColumn
in interface TreeListGridBuilderDao
public Long retrieveRowIndexForTreeColumn(org.broadleafcommerce.core.catalog.domain.CategoryXref categoryXref)
TreeListGridBuilderDao
retrieveRowIndexForTreeColumn
in interface TreeListGridBuilderDao
public List<Long> retrieveIdsOfAllSubCategories()
TreeListGridBuilderDao
retrieveIdsOfAllSubCategories
in interface TreeListGridBuilderDao
public List<javax.persistence.criteria.Predicate> buildNotInClauseList(javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Path path, List<Long> subCategoryIds)
TreeListGridBuilderDao
buildNotInClauseList
in interface TreeListGridBuilderDao
Copyright © 2021. All rights reserved.