All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flowcentraltech.flowcentral.system.entities.ScheduledTask Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
/*
 * Copyright 2021-2024 FlowCentral Technologies Limited.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.flowcentraltech.flowcentral.system.entities;

import java.util.Date;

import com.flowcentraltech.flowcentral.common.entities.BaseStatusTenantEntity;
import com.flowcentraltech.flowcentral.common.entities.ParamValues;
import com.tcdng.unify.core.annotation.Child;
import com.tcdng.unify.core.annotation.Column;
import com.tcdng.unify.core.annotation.ColumnType;
import com.tcdng.unify.core.annotation.Policy;
import com.tcdng.unify.core.annotation.Table;
import com.tcdng.unify.core.annotation.UniqueConstraint;

/**
 * Scheduled task entity.
 * 
 * @author FlowCentral Technologies Limited
 * @since 1.0
 */
@Policy("scheduledtask-entitypolicy")
@Table(name = "FC_SCHEDULEDTASK", uniqueConstraints = { @UniqueConstraint({ "description" }) })
public class ScheduledTask extends BaseStatusTenantEntity {

    @Column(name = "SCHEDTASK_DESC", length = 64)
    private String description;

    @Column(name = "TASK_NM", length = 64)
    private String taskName;

    @Column(type = ColumnType.TIMESTAMP)
    private Date startTime;

    @Column(type = ColumnType.TIMESTAMP, nullable = true)
    private Date endTime;

    @Column(type = ColumnType.TIMESTAMP)
    private Date nextExecutionOn;

    @Column(type = ColumnType.TIMESTAMP, nullable = true)
    private Date lastExecutionOn;

    @Column(nullable = true)
    private String frequency;

    @Column(length = 256, nullable = true)
    private String weekdays;

    @Column(length = 256, nullable = true)
    private String days;

    @Column(length = 256, nullable = true)
    private String months;

    @Child(category = "scheduledtask")
    private ParamValues paramValues;

    @Override
    public String getDescription() {
        return description;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getNextExecutionOn() {
        return nextExecutionOn;
    }

    public void setNextExecutionOn(Date nextExecutionOn) {
        this.nextExecutionOn = nextExecutionOn;
    }

    public Date getLastExecutionOn() {
        return lastExecutionOn;
    }

    public void setLastExecutionOn(Date lastExecutionOn) {
        this.lastExecutionOn = lastExecutionOn;
    }

    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    public String getWeekdays() {
        return weekdays;
    }

    public void setWeekdays(String weekdays) {
        this.weekdays = weekdays;
    }

    public String getDays() {
        return days;
    }

    public void setDays(String days) {
        this.days = days;
    }

    public String getMonths() {
        return months;
    }

    public void setMonths(String months) {
        this.months = months;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public ParamValues getParamValues() {
        return paramValues;
    }

    public void setParamValues(ParamValues paramValues) {
        this.paramValues = paramValues;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy