@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)
TreeListGridBuilderDaoretrieveRowIndexForRootColumn in interface TreeListGridBuilderDaopublic Long retrieveRowIndexForTreeColumn(org.broadleafcommerce.core.catalog.domain.CategoryXref categoryXref)
TreeListGridBuilderDaoretrieveRowIndexForTreeColumn in interface TreeListGridBuilderDaopublic List<Long> retrieveIdsOfAllSubCategories()
TreeListGridBuilderDaoretrieveIdsOfAllSubCategories in interface TreeListGridBuilderDaopublic List<javax.persistence.criteria.Predicate> buildNotInClauseList(javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Path path, List<Long> subCategoryIds)
TreeListGridBuilderDaobuildNotInClauseList in interface TreeListGridBuilderDaoCopyright © 2021. All rights reserved.