Package io.jmix.reports.annotation
Annotation Interface InputParameterDef
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(RepeatableInputParameterDef.class)
public @interface InputParameterDef
Defines an input parameter - parameter passed from the outside when running a defined report
which can be used as conditions in data sets.
Additional associated logic can be declared by creating a method annotated with
Model object is
InputParameterDelegate.
Model object is
ReportInputParameter.- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionUnique alias used to access parameter in datasets.Data type of the parameter. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the current timestamp will be used as the default parameter value forParameterType.DATE,ParameterType.TIME,ParameterType.DATETIMEtypes.String representation of the default value that will be used if no other value is selected by the user.Additional parameters forParameterType.ENTITYandParameterType.ENTITY_LISTtypes.Class<?>Enumeration class forParameterType.ENUMERATIONparametersbooleanWhether the request for parameter should be hidden from users.Human-readable parameter name.Type of the predefinedParameterType.TEXTtransformation.booleanWhether predefined transformation should be used forParameterType.TEXTparameter (it is useful if parameter is used in a query condition for SQL and JPQL data sets).booleanWhether the parameter is mandatory.
-
Element Details
-
alias
String aliasUnique alias used to access parameter in datasets. -
type
ParameterType typeData type of the parameter.
-
-
-
name
String nameHuman-readable parameter name.
Usemsg://format if localization is required. Default message group is inferred from the declaration class's package.- Default:
- ""
-
required
boolean requiredWhether the parameter is mandatory.- Default:
- false
-
enumerationClass
Class<?> enumerationClassEnumeration class forParameterType.ENUMERATIONparameters- Default:
- void.class
-
defaultValue
String defaultValueString representation of the default value that will be used if no other value is selected by the user. Consider usingDefaultValueProviderdelegate instead for complex types.- Default:
- ""
-
defaultDateIsCurrent
boolean defaultDateIsCurrentWhether the current timestamp will be used as the default parameter value forParameterType.DATE,ParameterType.TIME,ParameterType.DATETIMEtypes.- Default:
- false
-
entity
EntityParameterDef entityAdditional parameters forParameterType.ENTITYandParameterType.ENTITY_LISTtypes.- Default:
- @io.jmix.reports.annotation.EntityParameterDef
-
predefinedTransformationEnabled
boolean predefinedTransformationEnabledWhether predefined transformation should be used forParameterType.TEXTparameter (it is useful if parameter is used in a query condition for SQL and JPQL data sets).- Default:
- false
-
predefinedTransformation
PredefinedTransformation predefinedTransformationType of the predefinedParameterType.TEXTtransformation.- Default:
- CONTAINS
-