Interface ConstraintEntityDefinitionParameter
-
- All Superinterfaces:
Serializable
public interface ConstraintEntityDefinitionParameter extends Serializable
A representation of a parameter from the definition of the entity to use for constraint evaluation. This representation may wrap on of the following:- a
JobDefinitionParameter
if the constraint is being evaluated in the context of a Job/JobChainCall - a
TableDefinitionColumn
if the constraint is being evaluated in the context of a table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Long
getArrayMaxLength()
The maximum length of the array if the parameter is an array parameter.Long
getArrayMinLength()
The minimum length of the array if the parameter is an array parameter.Long
getDataLength()
The maximum length of the parameter if the type is String.ParameterType
getDataType()
Gets the type of the parameter from the definition.String
getDefaultExpression()
Gets the default expression of the parameter.ValueEditable
getDefaultValueEditable()
Indicates when the parameter from the definition is editable.String
getDefinitionName()
Gets the name of the entity definition.String
getDescription()
Gets the description of the parameter from the definition.default String
getErrorNameEN()
String
getFormat()
Gets the format of the parameter.String
getGroupName()
Gets the group name of the parameter from the definition.String
getName()
Gets the name of the parameter from the definition.String
getPartitionName()
Gets the name of the partition of the entity definition.String
getSimpleConstraintData()
Gets the simple constraint data of the parameter from the definition.String
getSimpleConstraintMessage()
Get the message of the simple constraint.SimpleConstraintSort
getSimpleConstraintSort()
Gets the sorting of the simple constraint.SimpleConstraintType
getSimpleConstraintType()
Gets the type of simple constraint.boolean
isArray()
Indicates whether the parameter is an array.boolean
isArrayDuplicateValuesAllowed()
Indicates whether duplicate values are allowed if the parameter is an array parameter.boolean
isDisplay()
Is the parameter from the definition displayed?boolean
isNullable()
Is the parameter from the definition optional?boolean
isSimpleConstraintOptional()
Is the simple constraint of the parameter from the definition optional?SchedulerEntity
unwrap()
Unwraps the constraint entity definition parameter by returning the underlying scheduler entity.
-
-
-
Method Detail
-
getName
String getName()
Gets the name of the parameter from the definition.- Returns:
- the name
-
getDescription
String getDescription()
Gets the description of the parameter from the definition.- Returns:
- the description
-
getDataType
ParameterType getDataType()
Gets the type of the parameter from the definition.- Returns:
- the type
-
isNullable
boolean isNullable()
Is the parameter from the definition optional?- Returns:
true
if the parameter is optional.
-
isDisplay
boolean isDisplay()
Is the parameter from the definition displayed?- Returns:
true
if the parameter is displayed.
-
getDefaultValueEditable
ValueEditable getDefaultValueEditable()
Indicates when the parameter from the definition is editable.- Returns:
- when the parameter is editable
-
getSimpleConstraintData
String getSimpleConstraintData()
Gets the simple constraint data of the parameter from the definition.- Returns:
- the simple constraint data
-
isSimpleConstraintOptional
boolean isSimpleConstraintOptional()
Is the simple constraint of the parameter from the definition optional?- Returns:
true
if the simple constraint of the parameter is optional.
-
getSimpleConstraintType
SimpleConstraintType getSimpleConstraintType()
Gets the type of simple constraint.- Returns:
- the type of simple constraint.
-
getSimpleConstraintMessage
String getSimpleConstraintMessage()
Get the message of the simple constraint.- Returns:
- the message of the simple constraint.
-
getSimpleConstraintSort
SimpleConstraintSort getSimpleConstraintSort()
Gets the sorting of the simple constraint.- Returns:
- the sorting of the simple constraint.
-
getGroupName
String getGroupName()
Gets the group name of the parameter from the definition.- Returns:
- the group name
-
getDataLength
Long getDataLength()
The maximum length of the parameter if the type is String.- Returns:
- the maximum length of the parameter
-
getDefinitionName
String getDefinitionName()
Gets the name of the entity definition.- Returns:
- the name of the definition
-
getPartitionName
String getPartitionName()
Gets the name of the partition of the entity definition. Can only return null if the user does not have the privileges to see the Partition of the ConstraintEntity.- Returns:
- the name of the partition.
-
getDefaultExpression
String getDefaultExpression()
Gets the default expression of the parameter.- Returns:
- the default expression
-
getFormat
String getFormat()
Gets the format of the parameter.- Returns:
- the format
-
isArray
boolean isArray()
Indicates whether the parameter is an array.- Returns:
true
if the parameter is an array.
-
isArrayDuplicateValuesAllowed
boolean isArrayDuplicateValuesAllowed()
Indicates whether duplicate values are allowed if the parameter is an array parameter.- Returns:
true
if duplicate values are allowed in the array.
-
getArrayMinLength
Long getArrayMinLength()
The minimum length of the array if the parameter is an array parameter.- Returns:
- the minimum length of the array.
-
getArrayMaxLength
Long getArrayMaxLength()
The maximum length of the array if the parameter is an array parameter.- Returns:
- the maximum length of the array.
-
unwrap
SchedulerEntity unwrap()
Unwraps the constraint entity definition parameter by returning the underlying scheduler entity.- Returns:
- the scheduler entity that is wrapped inside this constraint entity definition parameter.
-
getErrorNameEN
default String getErrorNameEN()
-
-