public class ReportUtil
extends java.lang.Object
| Constructor and Description |
|---|
ReportUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection |
groupCollectionData(java.util.Collection objects,
java.lang.String groupBy) |
static java.util.Collection |
groupCollectionData(java.util.Collection objects,
java.lang.String groupBy,
java.lang.String groupOrder,
java.lang.String select,
Configuration configuration)
Groups collection of objects by given object property using provided groupOrder
|
static boolean |
shouldSelectCollectionData(java.util.Map beans,
java.lang.String select,
Configuration configuration) |
public static java.util.Collection groupCollectionData(java.util.Collection objects,
java.lang.String groupBy)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic static java.util.Collection groupCollectionData(java.util.Collection objects,
java.lang.String groupBy,
java.lang.String groupOrder,
java.lang.String select,
Configuration configuration)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
objects - - Collection of objects to groupgroupBy - - Name of the property to group objects in the original collectiongroupOrder - - Indicates how groups should be sorted. If groupOrder is null then group order is preserved the same
as iteration order of the original collection. If groupOrder equals to "asc" or "desc" (case insensitive)
groups will be sorted accordinglyselect - - binary expression used to select which items go in the collectionconfiguration - - Configuration class for this transformationGroupData objects containing group data and collection of corresponding group itemsjava.lang.NoSuchMethodException - - Thrown when there is an error accessing given bean property by reflectionjava.lang.IllegalAccessException - - Thrown when there is an error accessing given bean property by reflectionjava.lang.reflect.InvocationTargetException - - Thrown when there is an error accessing given bean property by reflectionpublic static boolean shouldSelectCollectionData(java.util.Map beans,
java.lang.String select,
Configuration configuration)
Copyright © 2005-2014 jXLS Team. All Rights Reserved.