com.elephantdrummer.model.PtJobApplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of drummer Show documentation
Show all versions of drummer Show documentation
Elephant Drummer Java Job Scheduler
package com.elephantdrummer.model;
import java.math.BigDecimal;
import java.util.Date;
//import javax.ejb.TransactionManagement;
//import javax.ejb.TransactionManagementType;
//import javax.persistence.Cacheable;
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
//import javax.persistence.Id;
//import javax.persistence.PrePersist;
//import javax.persistence.PreUpdate;
//import javax.persistence.Table;
//import javax.persistence.Temporal;
//import javax.persistence.TemporalType;
//import javax.persistence.Transient;
//
//import com.elephant.drummer.dao.structure.EntityWithId;
//@Entity
//@Table(name = "PT_JOB_APPLICATION")
//@Cacheable(value = false)
//@TransactionManagement(TransactionManagementType.BEAN)
/**
* Copyright 2018 Elephant Software Klaudiusz Wojtkowiak e-mail: [email protected]
*
* 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.
*/
public class PtJobApplication {//implements EntityWithId {
private static final long serialVersionUID = 1L;
// Fields
private BigDecimal ptJobApplicationId;
private BigDecimal ptJobId;
private BigDecimal ptTriggerId;
private BigDecimal ptApplicationId;
private Date lastUpdateDate;
private Date lastStartDate;
private Date lastFinishDate;
private Date nextExecutionDate;
private String status;
private String type;
// private String className;
private Date clusterTakeDate;
private BigDecimal clusterJobId;
private BigDecimal triggerStep;
private BigDecimal triggerShift;
private Boolean enabled;
private BigDecimal threadPoolSize;
private BigDecimal forcedPtTriggerId;
private BigDecimal forcedTriggerStep;
private BigDecimal forcedTriggerShift;
private BigDecimal ptExecutorId;
private BigDecimal forcedThreadPoolSize;
public PtJobApplication() {
};
// Property accessors
// @Id
// //@Column(name = "PT_JOB_APPLICATION_ID", precision = 22, scale = 0)
// @GeneratedValue(strategy = GenerationType.IDENTITY)
public BigDecimal getPtJobApplicationId() {
return this.ptJobApplicationId;
}
public void setPtJobApplicationId(BigDecimal ptJobApplicationId) {
this.ptJobApplicationId = ptJobApplicationId;
}
//@Column(name = "PT_JOB_ID")
public BigDecimal getPtJobId() {
return this.ptJobId;
}
public void setPtJobId(BigDecimal ptJobId) {
this.ptJobId = ptJobId;
}
//@Column(name = "PT_APPLICATION_ID")
public BigDecimal getPtApplicationId() {
return this.ptApplicationId;
}
public void setPtApplicationId(BigDecimal ptApplicationId) {
this.ptApplicationId = ptApplicationId;
}
// @PrePersist
// @PreUpdate
public void preUpdate() {
setLastUpdateDate(new Date());
}
// @Temporal(TemporalType.TIMESTAMP)
//@Column(name = "LAST_UPDATE_DATE")
public Date getLastUpdateDate() {
return lastUpdateDate;
}
public void setLastUpdateDate(Date lastUpdateDate) {
this.lastUpdateDate = lastUpdateDate;
}
// @Temporal(TemporalType.TIMESTAMP)
//@Column(name = "LAST_START_DATE")
public Date getLastStartDate() {
return lastStartDate;
}
public void setLastStartDate(Date lastStartDate) {
this.lastStartDate = lastStartDate;
}
// @Temporal(TemporalType.TIMESTAMP)
//@Column(name = "LAST_FINISH_DATE")
public Date getLastFinishDate() {
return lastFinishDate;
}
public void setLastFinishDate(Date lastFinishDate) {
this.lastFinishDate = lastFinishDate;
}
//@Column(name = "STATUS")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
// @Temporal(TemporalType.TIMESTAMP)
//@Column(name = "NEXT_EXECUTION_DATE")
public Date getNextExecutionDate() {
return nextExecutionDate;
}
public void setNextExecutionDate(Date nextExecutionDate) {
this.nextExecutionDate = nextExecutionDate;
}
// @Transient
// @Override
public BigDecimal getId() {
return getPtJobApplicationId();
}
//@Column(name = "PT_TRIGGER_ID")
public BigDecimal getPtTriggerId() {
return ptTriggerId;
}
public void setPtTriggerId(BigDecimal ptTriggerId) {
this.ptTriggerId = ptTriggerId;
}
//@Column(name = "TRIGGER_STEP")
public BigDecimal getTriggerStep() {
return triggerStep;
}
public void setTriggerStep(BigDecimal triggerStep) {
this.triggerStep = triggerStep;
}
//@Column(name = "TRIGGER_SHIFT")
public BigDecimal getTriggerShift() {
return triggerShift;
}
public void setTriggerShift(BigDecimal triggerShift) {
this.triggerShift = triggerShift;
}
//@Column(name = "ENABLED")
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
//@Column(name = "FORCED_PT_TRIGGER_ID")
public BigDecimal getForcedPtTriggerId() {
return forcedPtTriggerId;
}
public void setForcedPtTriggerId(BigDecimal forcedPtTriggerId) {
this.forcedPtTriggerId = forcedPtTriggerId;
}
//@Column(name = "FORCED_TRIGGER_STEP")
public BigDecimal getForcedTriggerStep() {
return forcedTriggerStep;
}
public void setForcedTriggerStep(BigDecimal forcedTriggerStep) {
this.forcedTriggerStep = forcedTriggerStep;
}
//@Column(name = "FORCED_TRIGGER_SHIFT")
public BigDecimal getForcedTriggerShift() {
return forcedTriggerShift;
}
public void setForcedTriggerShift(BigDecimal forcedTriggerShift) {
this.forcedTriggerShift = forcedTriggerShift;
}
//@Column(name = "PT_EXECUTOR_ID")
public BigDecimal getPtExecutorId() {
return ptExecutorId;
}
public void setPtExecutorId(BigDecimal ptExecutorId) {
this.ptExecutorId = ptExecutorId;
}
//@Column(name = "TYPE", length = 64)
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
//@Column(name = "THREAD_POOL_SIZE", length = 64)
public BigDecimal getThreadPoolSize() {
return threadPoolSize;
}
public void setThreadPoolSize(BigDecimal threadPoolSize) {
this.threadPoolSize = threadPoolSize;
}
//@Column(name = "FORCED_THREAD_POOL_SIZE", length = 64)
public BigDecimal getForcedThreadPoolSize() {
return forcedThreadPoolSize;
}
public void setForcedThreadPoolSize(BigDecimal forcedThreadPoolSize) {
this.forcedThreadPoolSize = forcedThreadPoolSize;
}
//@Column(name = "CLUSTER_TAKE_DATE")
// @Temporal(TemporalType.TIMESTAMP)
public Date getClusterTakeDate() {
return clusterTakeDate;
}
public void setClusterTakeDate(Date clusterTakeDate) {
this.clusterTakeDate = clusterTakeDate;
}
//@Column(name = "CLUSTER_JOB_ID")
public BigDecimal getClusterJobId() {
return clusterJobId;
}
public void setClusterJobId(BigDecimal clusterJobId) {
this.clusterJobId = clusterJobId;
}
// //@Column(name = "JOB_CLASSNAME")
// public String getClassName() {
// return this.className;
// }
//
// public void setClassName(String className) {
// this.className = className;
// }
}