Package io.jmix.reports.entity
Enum Class DataSetType
- All Implemented Interfaces:
EnumClass<Integer>,Serializable,Comparable<DataSetType>,Constable
When running a report, datasets are transformed into lists of rows, where each row contains a map of name-value pairs.
Data set type determines source where the data comes from.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDelegation to user-definedReportDataLoaderobject.Data is produced by Groovy script.Data is produced by JPQL query.Data is produced by applying a JsonPath query to a JSON input.Data is produced using attributes of an entity list, which is taken from input parameters.Data consists of a single row, and is produced using attributes of an input parameter of theParameterType.ENTITYtype.Data is produced by SQL query. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSetTypestatic DataSetTypegetCode()getId()static DataSetTypeReturns the enum constant of this class with the specified name.static DataSetType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SQL
Data is produced by SQL query. -
JPQL
Data is produced by JPQL query. -
GROOVY
Data is produced by Groovy script. -
SINGLE
Data consists of a single row, and is produced using attributes of an input parameter of theParameterType.ENTITYtype. -
MULTI
Data is produced using attributes of an entity list, which is taken from input parameters. Two options are available:- input parameter of the
ParameterType.ENTITY_LISTtype is used as a source - sub-collection attribute of the
ParameterType.ENTITYparameter is used as a source
- input parameter of the
-
JSON
Data is produced by applying a JsonPath query to a JSON input. -
DELEGATE
Delegation to user-definedReportDataLoaderobject.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
-
getCode
-
fromId
-
fromCode
-