Package com.redwood.scheduler.api.model
Interface JobDefinitionParameter
-
- All Superinterfaces:
BusinessKeyObject
,Detail
,JobDefinitionParameterComp
,NamedDetailObject
,Readable
,SchedulerEntity
,SchedulerEntityComp
public interface JobDefinitionParameter extends JobDefinitionParameterComp, NamedDetailObject, BusinessKeyObject, Readable
Parameters defined for a job definition Parameters enable you to define generic job definitions that behave differently according to the values of the parameters.
-
-
Field Summary
Fields Modifier and Type Field Description static Long
BEHAVIOR_REACTION
Behavior for parameters that were created when the job became a reaction type.static String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "JobDefinitionParameter" objects.static String
SEC_RANK_ALL
This rank is made of the following privileges:static String
SEC_RANK_NONE
This rank has no privileges assigned to it.static QueryObjectType<JobDefinitionParameter>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.-
Fields inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
COPYRIGHT_MESSAGE_BKO, ID_BKO
-
Fields inherited from interface com.redwood.scheduler.api.model.Readable
COPYRIGHT_MESSAGE_E, ID_E
-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String[]
evaluateDefaultExpressionForToArrayFunction()
Special method, which attempts to evaluate an Array.toXXXArray default expression of the JobDefinitionParameter and converts it to String[] or null.Long
getArrayMaxLength()
Get the value for ArrayMaxLength.Long
getArrayMinLength()
Get the value for ArrayMinLength.Long
getDataLength()
Get the value for DataLength.Long
getDataPrecision()
Get the value for DataPrecision.Long
getDataScale()
Get the value for DataScale.ParameterType
getDataType()
Get the value for DataType.String
getDefaultExpression()
Get the value for DefaultExpression.ValueEditable
getDefaultValueEditable()
Get the value for DefaultValueEditable.ParameterDirection
getDirection()
Get the value for Direction.Long
getDisplayOrder()
Get the value for DisplayOrder.EditableType
getEditable()
Deprecated.This value is not used by the product, usegetDefaultValueEditable()
insteadString
getGroupName()
Get the value for GroupName.JobDefinition
getJobDefinition()
Get the JobDefinition.String
getJobDefinitionParameterSubType()
Get the value for JobDefinitionParameterSubType.String
getJobFormat()
Get the value for JobFormat.JobChainCallInExpressionParameter
getLocalJobChainCallInExpressionParameterByJobChainCall(JobChainCall jobChainCall)
Get the JobChainCallInExpressionParameter by DestinationJobDefinitionParameter.RWIterable<JobChainCallInExpressionParameter>
getLocalJobChainCallInExpressionParameters()
Get anRWIterable
over an ordered collection ofLocalJobChainCallInExpressionParameters
.JobChainCallInReferenceParameter
getLocalJobChainCallInReferenceParameterByJobChainCall(JobChainCall jobChainCall)
Get the JobChainCallInReferenceParameter by DestinationJobDefinitionParameter.RWIterable<JobChainCallInReferenceParameter>
getLocalJobChainCallInReferenceParameters()
Get anRWIterable
over an ordered collection ofLocalJobChainCallInReferenceParameters
.RWIterable<JobChainCallOutReferenceParameter>
getLocalJobChainCallOutReferenceParameters()
Get anRWIterable
over an ordered collection ofLocalJobChainCallOutReferenceParameters
.ParameterMappingType
getParameterMappingType()
Get the value for ParameterMappingType.String
getSimpleConstraintData()
Get the value for SimpleConstraintData.String
getSimpleConstraintMessage()
Get the value for SimpleConstraintMessage.SimpleConstraintSort
getSimpleConstraintSort()
Get the value for SimpleConstraintSort.SimpleConstraintType
getSimpleConstraintType()
Get the value for SimpleConstraintType.RWIterable<JobChainCallOutReferenceParameter>
getSourceJobChainCallOutReferenceParameters()
Get anRWIterable
over an ordered collection ofSourceJobChainCallOutReferenceParameters
.RWIterable<JobChainCallInReferenceParameter>
getTargetJobChainCallInReferenceParameters()
Get anRWIterable
over an ordered collection ofTargetJobChainCallInReferenceParameters
.boolean
isArray()
Get the value for Array.boolean
isArrayDuplicateValuesAllowed()
Get the value for ArrayDuplicateValuesAllowed.boolean
isArraySorted()
Get the value for ArraySorted.boolean
isDisplay()
Get the value for Display.boolean
isNullable()
Get the value for Nullable.boolean
isPartOfKey()
Get the value for PartOfKey.boolean
isPassword()
Get the value for Password.boolean
isRuntime()
Get the value for Runtime.boolean
isSimpleConstraintOptional()
Get the value for SimpleConstraintOptional.void
setArray(boolean newArray)
Set the value for Array.void
setArrayDuplicateValuesAllowed(boolean newArrayDuplicateValuesAllowed)
Set the value for ArrayDuplicateValuesAllowed.void
setArrayMaxLength(Long newArrayMaxLength)
Set the value for ArrayMaxLength.void
setArrayMinLength(Long newArrayMinLength)
Set the value for ArrayMinLength.void
setArraySorted(boolean newArraySorted)
Set the value for ArraySorted.void
setDataLength(Long newDataLength)
Set the value for DataLength.void
setDataPrecision(Long newDataPrecision)
Set the value for DataPrecision.void
setDataScale(Long newDataScale)
Set the value for DataScale.void
setDataType(ParameterType newDataType)
Set the value for DataType.void
setDefaultExpression(String newDefaultExpression)
Set the value for DefaultExpression.void
setDefaultValueEditable(ValueEditable newDefaultValueEditable)
Set the value for DefaultValueEditable.void
setDirection(ParameterDirection newDirection)
Set the value for Direction.void
setDisplay(boolean newDisplay)
Set the value for Display.void
setDisplayOrder(Long newDisplayOrder)
Set the value for DisplayOrder.void
setEditable(EditableType newEditable)
Deprecated.This value is not used by the product, usegetDefaultValueEditable()
insteadvoid
setGroupName(String newGroupName)
Set the value for GroupName.void
setJobDefinitionParameterSubType(String newJobDefinitionParameterSubType)
Set the value for JobDefinitionParameterSubType.void
setJobFormat(String newJobFormat)
Set the value for JobFormat.void
setNullable(boolean newNullable)
Set the value for Nullable.void
setParameterMappingType(ParameterMappingType newParameterMappingType)
Set the value for ParameterMappingType.void
setPartOfKey(boolean newPartOfKey)
Set the value for PartOfKey.void
setPassword(boolean newPassword)
Set the value for Password.void
setRuntime(boolean newRuntime)
Set the value for Runtime.void
setSimpleConstraintData(String newSimpleConstraintData)
Set the value for SimpleConstraintData.void
setSimpleConstraintMessage(String newSimpleConstraintMessage)
Set the value for SimpleConstraintMessage.void
setSimpleConstraintOptional(boolean newSimpleConstraintOptional)
Set the value for SimpleConstraintOptional.void
setSimpleConstraintSort(SimpleConstraintSort newSimpleConstraintSort)
Set the value for SimpleConstraintSort.void
setSimpleConstraintType(SimpleConstraintType newSimpleConstraintType)
Set the value for SimpleConstraintType.-
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
getBusinessKey
-
Methods inherited from interface com.redwood.scheduler.api.model.NamedDetailObject
getComment, getDescription, getName, getSearchName, setComment, setDescription, setName
-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
-
-
-
-
Field Detail
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "JobDefinitionParameter" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<JobDefinitionParameter> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.
-
BEHAVIOR_REACTION
static final Long BEHAVIOR_REACTION
Behavior for parameters that were created when the job became a reaction type. When a jobdefinition is of a Reaction type, it will get default parameters that are being used by the reaction type. To make sure these parameters are detected by the reaction helper, the behavior is set to this one.
-
SEC_RANK_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges:- See Also:
- Constant Field Values
-
-
Method Detail
-
getDataLength
Long getDataLength()
Get the value for DataLength. (The maximum length that a string parameter can be. If this value is null then the length will not be checked. This value is ignored for non-string parameters.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDataPrecision
Long getDataPrecision()
Get the value for DataPrecision. (The precision, or the total number of digits. Currently this field is ignored. Setting this value to anything other than null may cause unexpected behaviour in future releases.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDataScale
Long getDataScale()
Get the value for DataScale. (The number of digits to the right of the decimal pointi. Currently this field is ignored. Setting this value to anything other than null may cause unexpected behaviour in future releases.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDataType
ParameterType getDataType()
Get the value for DataType. (The datatype of the parameter) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDefaultExpression
String getDefaultExpression()
Get the value for DefaultExpression. (The definition of the default parameter value. The interpretation of this expression is based upon the DefaultExpressionType.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDefaultValueEditable
ValueEditable getDefaultValueEditable()
Get the value for DefaultValueEditable. (When is the DefaultValue Editable.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDirection
ParameterDirection getDirection()
Get the value for Direction. (What direction is the parameter passed.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSimpleConstraintType
SimpleConstraintType getSimpleConstraintType()
Get the value for SimpleConstraintType. (The type of simple constraint to apply.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSimpleConstraintData
String getSimpleConstraintData()
Get the value for SimpleConstraintData. (The data for the simple constraint.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSimpleConstraintMessage
String getSimpleConstraintMessage()
Get the value for SimpleConstraintMessage. (The message to display if the simple constraint fails to validate.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isSimpleConstraintOptional
boolean isSimpleConstraintOptional()
Get the value for SimpleConstraintOptional. (Is the constraint optional?)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSimpleConstraintSort
SimpleConstraintSort getSimpleConstraintSort()
Get the value for SimpleConstraintSort. (Sort order of constraint.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isDisplay
boolean isDisplay()
Get the value for Display. (Is the parameter displayed?)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isPassword
boolean isPassword()
Get the value for Password. (Is the parameter concealed?)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getDisplayOrder
Long getDisplayOrder()
Get the value for DisplayOrder. (In which position is this parameter displayed by a front end?) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getEditable
@Deprecated EditableType getEditable()
Deprecated.This value is not used by the product, usegetDefaultValueEditable()
insteadGet the value for Editable. (Deprecated Method, do not use, this value is not used in the product. This method remains purely for binary compatibility concerns.) This value is mandatory, and therefore will not be
null
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getGroupName
String getGroupName()
Get the value for GroupName. (The GUI name of the parameter group)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isPartOfKey
boolean isPartOfKey()
Get the value for PartOfKey. (Is this a parameter a part of the key for this JobDefinition? That is if getJobDefinition().getKeepType() == JobDefinitionKeepType.Key, then should this parameter be used to filter the results.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isNullable
boolean isNullable()
Get the value for Nullable. (Is the parameter optional?)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isRuntime
boolean isRuntime()
Get the value for Runtime. (Is the parameter determined at runtime?)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getJobFormat
String getJobFormat()
Get the value for JobFormat. (The format mask for the parameter in which the Job uses its value.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isArray
boolean isArray()
Get the value for Array. (If true, the parameter is an array parameter.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getArrayMinLength
Long getArrayMinLength()
Get the value for ArrayMinLength. (The minimum length the array must have, defaults to 0.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getArrayMaxLength
Long getArrayMaxLength()
Get the value for ArrayMaxLength. (The maximum length the array must have, no default.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isArrayDuplicateValuesAllowed
boolean isArrayDuplicateValuesAllowed()
Get the value for ArrayDuplicateValuesAllowed. (If true, duplicates are allowed. Defaults to false.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isArraySorted
boolean isArraySorted()
Get the value for ArraySorted. (If true, the elements in the array are sorted in natural order. Defaults to true.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getParameterMappingType
ParameterMappingType getParameterMappingType()
Get the value for ParameterMappingType. (The role this parameter plays in JobChain parameter mappings. Used by the JobChain editor.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getJobDefinitionParameterSubType
String getJobDefinitionParameterSubType()
Get the value for JobDefinitionParameterSubType. ( The sub type of the parameter, contains a weak reference to JobDefinitionParameterSubType. )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDataLength
void setDataLength(Long newDataLength)
Set the value for DataLength. (The maximum length that a string parameter can be. If this value is null then the length will not be checked. This value is ignored for non-string parameters.) This value is optional.- Parameters:
newDataLength
- the new value for DataLength.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDataPrecision
void setDataPrecision(Long newDataPrecision)
Set the value for DataPrecision. (The precision, or the total number of digits. Currently this field is ignored. Setting this value to anything other than null may cause unexpected behaviour in future releases.) This value is optional.- Parameters:
newDataPrecision
- the new value for DataPrecision.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDataScale
void setDataScale(Long newDataScale)
Set the value for DataScale. (The number of digits to the right of the decimal pointi. Currently this field is ignored. Setting this value to anything other than null may cause unexpected behaviour in future releases.) This value is optional.- Parameters:
newDataScale
- the new value for DataScale.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDataType
void setDataType(ParameterType newDataType)
Set the value for DataType. (The datatype of the parameter) This value is mandatory.- Parameters:
newDataType
- the new value for DataType. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDefaultExpression
void setDefaultExpression(String newDefaultExpression)
Set the value for DefaultExpression. (The definition of the default parameter value. The interpretation of this expression is based upon the DefaultExpressionType.) This value is optional.- Parameters:
newDefaultExpression
- the new value for DefaultExpression.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDefaultValueEditable
void setDefaultValueEditable(ValueEditable newDefaultValueEditable)
Set the value for DefaultValueEditable. (When is the DefaultValue Editable.) This value is optional.- Parameters:
newDefaultValueEditable
- the new value for DefaultValueEditable.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDirection
void setDirection(ParameterDirection newDirection)
Set the value for Direction. (What direction is the parameter passed.) This value is mandatory.- Parameters:
newDirection
- the new value for Direction. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintType
void setSimpleConstraintType(SimpleConstraintType newSimpleConstraintType)
Set the value for SimpleConstraintType. (The type of simple constraint to apply.) This value is mandatory.- Parameters:
newSimpleConstraintType
- the new value for SimpleConstraintType. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintData
void setSimpleConstraintData(String newSimpleConstraintData)
Set the value for SimpleConstraintData. (The data for the simple constraint.) This value is optional.- Parameters:
newSimpleConstraintData
- the new value for SimpleConstraintData.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintMessage
void setSimpleConstraintMessage(String newSimpleConstraintMessage)
Set the value for SimpleConstraintMessage. (The message to display if the simple constraint fails to validate.) This value is optional.- Parameters:
newSimpleConstraintMessage
- the new value for SimpleConstraintMessage.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintOptional
void setSimpleConstraintOptional(boolean newSimpleConstraintOptional)
Set the value for SimpleConstraintOptional. (Is the constraint optional?)- Parameters:
newSimpleConstraintOptional
- the new value for SimpleConstraintOptional.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSimpleConstraintSort
void setSimpleConstraintSort(SimpleConstraintSort newSimpleConstraintSort)
Set the value for SimpleConstraintSort. (Sort order of constraint.) This value is mandatory.- Parameters:
newSimpleConstraintSort
- the new value for SimpleConstraintSort. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDisplay
void setDisplay(boolean newDisplay)
Set the value for Display. (Is the parameter displayed?)- Parameters:
newDisplay
- the new value for Display.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setPassword
void setPassword(boolean newPassword)
Set the value for Password. (Is the parameter concealed?)- Parameters:
newPassword
- the new value for Password.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setDisplayOrder
void setDisplayOrder(Long newDisplayOrder)
Set the value for DisplayOrder. (In which position is this parameter displayed by a front end?) This value is mandatory.- Parameters:
newDisplayOrder
- the new value for DisplayOrder. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setEditable
@Deprecated void setEditable(EditableType newEditable)
Deprecated.This value is not used by the product, usegetDefaultValueEditable()
insteadSet the value for Editable. (Deprecated Method, do not use, this value is not used in the product. This method remains purely for binary compatibility concerns.) This value is mandatory.
- Parameters:
newEditable
- the new value for Editable. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setGroupName
void setGroupName(String newGroupName)
Set the value for GroupName. (The GUI name of the parameter group) This value is optional.- Parameters:
newGroupName
- the new value for GroupName.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setPartOfKey
void setPartOfKey(boolean newPartOfKey)
Set the value for PartOfKey. (Is this a parameter a part of the key for this JobDefinition? That is if getJobDefinition().getKeepType() == JobDefinitionKeepType.Key, then should this parameter be used to filter the results.)- Parameters:
newPartOfKey
- the new value for PartOfKey.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setNullable
void setNullable(boolean newNullable)
Set the value for Nullable. (Is the parameter optional?)- Parameters:
newNullable
- the new value for Nullable.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setRuntime
void setRuntime(boolean newRuntime)
Set the value for Runtime. (Is the parameter determined at runtime?)- Parameters:
newRuntime
- the new value for Runtime.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setJobFormat
void setJobFormat(String newJobFormat)
Set the value for JobFormat. (The format mask for the parameter in which the Job uses its value.) This value is optional.- Parameters:
newJobFormat
- the new value for JobFormat.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setArray
void setArray(boolean newArray)
Set the value for Array. (If true, the parameter is an array parameter.)- Parameters:
newArray
- the new value for Array.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setArrayMinLength
void setArrayMinLength(Long newArrayMinLength)
Set the value for ArrayMinLength. (The minimum length the array must have, defaults to 0.) This value is mandatory.- Parameters:
newArrayMinLength
- the new value for ArrayMinLength. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setArrayMaxLength
void setArrayMaxLength(Long newArrayMaxLength)
Set the value for ArrayMaxLength. (The maximum length the array must have, no default.) This value is optional.- Parameters:
newArrayMaxLength
- the new value for ArrayMaxLength.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setArrayDuplicateValuesAllowed
void setArrayDuplicateValuesAllowed(boolean newArrayDuplicateValuesAllowed)
Set the value for ArrayDuplicateValuesAllowed. (If true, duplicates are allowed. Defaults to false.)- Parameters:
newArrayDuplicateValuesAllowed
- the new value for ArrayDuplicateValuesAllowed.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setArraySorted
void setArraySorted(boolean newArraySorted)
Set the value for ArraySorted. (If true, the elements in the array are sorted in natural order. Defaults to true.)- Parameters:
newArraySorted
- the new value for ArraySorted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setParameterMappingType
void setParameterMappingType(ParameterMappingType newParameterMappingType)
Set the value for ParameterMappingType. (The role this parameter plays in JobChain parameter mappings. Used by the JobChain editor.) This value is mandatory.- Parameters:
newParameterMappingType
- the new value for ParameterMappingType. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setJobDefinitionParameterSubType
void setJobDefinitionParameterSubType(String newJobDefinitionParameterSubType)
Set the value for JobDefinitionParameterSubType. ( The sub type of the parameter, contains a weak reference to JobDefinitionParameterSubType. ) This value is optional.- Parameters:
newJobDefinitionParameterSubType
- the new value for JobDefinitionParameterSubType.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
evaluateDefaultExpressionForToArrayFunction
String[] evaluateDefaultExpressionForToArrayFunction()
Special method, which attempts to evaluate an Array.toXXXArray default expression of the JobDefinitionParameter and converts it to String[] or null. If the parameter is not an array parameter throws a RuntimeException. If the expression is null, the method returns null. If the expression is a literal value the method returns an array with 1 element (the literal value). If the expression contains non-literal parameters (e.g another function call), the array will contain the function call as element. If compiling fails, or conversion of array parameters fails, the method returns null. If however the expression contains valid literals or some function calls, for example: =Array.toStringArray('a','b','c') returns an array with 3 elements: 'a', 'b' and 'c'. Another example: =Array.toNumberArray('1',2,Custom_Lib.getNumberValue()) returns an array with 3 elements: '1', 2 and Custom_Lib.getNumberValue() Note: This method will never evaluate non-literals (function calls) of the toXXXArray functions, to prevent side-effects. Strings will be returned quotes as they originally were.- Returns:
- String array or null
-
getJobDefinition
JobDefinition getJobDefinition()
Get the JobDefinition.- Returns:
- JobDefinition
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
getTargetJobChainCallInReferenceParameters
RWIterable<JobChainCallInReferenceParameter> getTargetJobChainCallInReferenceParameters()
Get anRWIterable
over an ordered collection ofTargetJobChainCallInReferenceParameters
. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull
. The JobDefinitionParameter that this JobChainCallInReferenceParameter will read the results of. It must be associated with the this.getSourceJobChainCall().getJobDefinition() or with this.getJobChain().- Specified by:
getTargetJobChainCallInReferenceParameters
in interfaceJobDefinitionParameterComp
- Returns:
- An
RWIterable
over an ordered collection ofJobChainCallInReferenceParameter
objects .
-
getSourceJobChainCallOutReferenceParameters
RWIterable<JobChainCallOutReferenceParameter> getSourceJobChainCallOutReferenceParameters()
Get anRWIterable
over an ordered collection ofSourceJobChainCallOutReferenceParameters
. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull
. The JobChains JobDefinitionParameter that this JobChainCallOutParameter will update. This must be associated with this.getJobChainCall().getJobChainStep().getJobChain().getJobDefinition().- Specified by:
getSourceJobChainCallOutReferenceParameters
in interfaceJobDefinitionParameterComp
- Returns:
- An
RWIterable
over an ordered collection ofJobChainCallOutReferenceParameter
objects .
-
getLocalJobChainCallInExpressionParameters
RWIterable<JobChainCallInExpressionParameter> getLocalJobChainCallInExpressionParameters()
Get anRWIterable
over an ordered collection ofLocalJobChainCallInExpressionParameters
. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull
. The JobDefinitionParameter that this JobChainCallParameter will read or update.- Specified by:
getLocalJobChainCallInExpressionParameters
in interfaceJobDefinitionParameterComp
- Returns:
- An
RWIterable
over an ordered collection ofJobChainCallInExpressionParameter
objects .
-
getLocalJobChainCallInExpressionParameterByJobChainCall
JobChainCallInExpressionParameter getLocalJobChainCallInExpressionParameterByJobChainCall(JobChainCall jobChainCall)
Get the JobChainCallInExpressionParameter by DestinationJobDefinitionParameter.- Parameters:
jobChainCall
-- Returns:
- the JobChainCallInExpressionParameter, or
null
if it could not be found
-
getLocalJobChainCallInReferenceParameters
RWIterable<JobChainCallInReferenceParameter> getLocalJobChainCallInReferenceParameters()
Get anRWIterable
over an ordered collection ofLocalJobChainCallInReferenceParameters
. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull
. The JobDefinitionParameter that this JobChainCallParameter will read or update.- Specified by:
getLocalJobChainCallInReferenceParameters
in interfaceJobDefinitionParameterComp
- Returns:
- An
RWIterable
over an ordered collection ofJobChainCallInReferenceParameter
objects .
-
getLocalJobChainCallInReferenceParameterByJobChainCall
JobChainCallInReferenceParameter getLocalJobChainCallInReferenceParameterByJobChainCall(JobChainCall jobChainCall)
Get the JobChainCallInReferenceParameter by DestinationJobDefinitionParameter.- Parameters:
jobChainCall
-- Returns:
- the JobChainCallInReferenceParameter, or
null
if it could not be found
-
getLocalJobChainCallOutReferenceParameters
RWIterable<JobChainCallOutReferenceParameter> getLocalJobChainCallOutReferenceParameters()
Get anRWIterable
over an ordered collection ofLocalJobChainCallOutReferenceParameters
. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull
. The JobDefinitionParameter that this JobChainCallParameter will read or update.- Specified by:
getLocalJobChainCallOutReferenceParameters
in interfaceJobDefinitionParameterComp
- Returns:
- An
RWIterable
over an ordered collection ofJobChainCallOutReferenceParameter
objects .
-
-