public interface SandBoxCollectionHelper
Modifier and Type | Method and Description |
---|---|
Object |
getAppropriateLargeSortingValue(String sortProperty)
Get a large value to apply to any query results that do not define a value in the sorting field.
|
String |
getCacheKey()
A key to identify the collection batch fetch query in the batch fetch cache.
|
String |
getCacheRegion()
Get the cache region used on the collection, if applicable (can be null)
|
String |
getCollectionFetchQuery()
Get the HQL query used to retrieve the collection members
|
String |
getForeignKeyField()
Get the field on the collection member that points back to the containing entity
|
String |
getForeignKeyIdField()
Get the id field of the containing entity class
|
List<org.broadleafcommerce.common.util.Tuple<String,String>> |
getSortExpressions()
Get the sorting expressions for the query results, if applicable (can be null or empty)
|
String |
getTargetProperty()
Only applicable to
AdminPresentationAdornedTargetCollection annotated collections. |
Class<?> |
getType()
Get the type for the collection members
|
Map<Serializable,List> |
sortByForeignKey(List results,
List<Serializable> fkValue)
Sort batch fetch results for sandboxable collections by their foreign key relationship.
|
Map<Serializable,List> sortByForeignKey(List results, List<Serializable> fkValue)
results
- fkValue
- String getCollectionFetchQuery()
List<org.broadleafcommerce.common.util.Tuple<String,String>> getSortExpressions()
Class<?> getType()
String getForeignKeyField()
String getForeignKeyIdField()
String getCacheRegion()
Object getAppropriateLargeSortingValue(String sortProperty)
sortProperty
- String getTargetProperty()
AdminPresentationAdornedTargetCollection
annotated collections. This property references
the target entity in the adorned target structure.String getCacheKey()
EnterpriseCollectionDao
for
more information.Copyright © 2019. All rights reserved.