CE-1068 - Add fields foreignKeyType; foreignKeyValue

This commit is contained in:
2024-04-29 12:13:40 -05:00
parent 9f4cb02764
commit 29b8025c41
2 changed files with 68 additions and 1 deletions

View File

@ -79,6 +79,12 @@ public class ScheduledJob extends QRecordEntity
@QField(isRequired = true)
private Boolean isActive;
@QField(maxLength = 100, valueTooLongBehavior = ValueTooLongBehavior.ERROR)
private String foreignKeyType;
@QField(maxLength = 100, valueTooLongBehavior = ValueTooLongBehavior.ERROR)
private String foreignKeyValue;
@QAssociation(name = ScheduledJobParameter.TABLE_NAME)
private List<ScheduledJobParameter> jobParameters;
@ -493,4 +499,65 @@ public class ScheduledJob extends QRecordEntity
}
/*******************************************************************************
** Getter for foreignKeyType
*******************************************************************************/
public String getForeignKeyType()
{
return (this.foreignKeyType);
}
/*******************************************************************************
** Setter for foreignKeyType
*******************************************************************************/
public void setForeignKeyType(String foreignKeyType)
{
this.foreignKeyType = foreignKeyType;
}
/*******************************************************************************
** Fluent setter for foreignKeyType
*******************************************************************************/
public ScheduledJob withForeignKeyType(String foreignKeyType)
{
this.foreignKeyType = foreignKeyType;
return (this);
}
/*******************************************************************************
** Getter for foreignKeyValue
*******************************************************************************/
public String getForeignKeyValue()
{
return (this.foreignKeyValue);
}
/*******************************************************************************
** Setter for foreignKeyValue
*******************************************************************************/
public void setForeignKeyValue(String foreignKeyValue)
{
this.foreignKeyValue = foreignKeyValue;
}
/*******************************************************************************
** Fluent setter for foreignKeyValue
*******************************************************************************/
public ScheduledJob withForeignKeyValue(String foreignKeyValue)
{
this.foreignKeyValue = foreignKeyValue;
return (this);
}
}

View File

@ -169,7 +169,7 @@ public class ScheduledJobsMetaDataProvider
.withRecordLabelFields("label")
.withSection(new QFieldSection("identity", new QIcon().withName("badge"), Tier.T1, List.of("id", "label", "description")))
.withSection(new QFieldSection("schedule", new QIcon().withName("alarm"), Tier.T2, List.of("cronExpression", "cronTimeZoneId", "repeatSeconds")))
.withSection(new QFieldSection("settings", new QIcon().withName("tune"), Tier.T2, List.of("type", "isActive", "schedulerName")))
.withSection(new QFieldSection("settings", new QIcon().withName("tune"), Tier.T2, List.of("type", "isActive", "schedulerName", "foreignKeyType", "foreignKeyValue")))
.withSection(new QFieldSection("parameters", new QIcon().withName("list"), Tier.T2).withWidgetName(JOB_PARAMETER_JOIN_NAME))
.withSection(new QFieldSection("dates", new QIcon().withName("calendar_month"), Tier.T3, List.of("createDate", "modifyDate")));