com.elephantdrummer.model.PtHistory 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_HISTORY")
//@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 PtHistory {//implements EntityWithId {
private static final long serialVersionUID = 1L;
// Fields
private BigDecimal ptHistoryId;
private Date startDate;
private Date stopDate;
private BigDecimal jobId;
private BigDecimal ptApplicationId;
private BigDecimal executionTime;
private String jobUUIDId;
private String executionComment;
private BigDecimal status;
private BigDecimal poolSize;
private BigDecimal queueSize;
private BigDecimal ptTriggerId;
private String triggerType;
private BigDecimal ptExecutorId;
public PtHistory() {
};
// Property accessors
// @Id
// @Column(name = "PT_HISTORY_ID", precision = 22, scale = 0)
// @GeneratedValue(strategy = GenerationType.IDENTITY)
public BigDecimal getPtHistoryId() {
return this.ptHistoryId;
}
public void setPtHistoryId(BigDecimal ptHistoryId) {
this.ptHistoryId = ptHistoryId;
}
// @Temporal(TemporalType.TIMESTAMP)
// @Column(name = "START_DATE")
public Date getStartDate() {
return this.startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
// @Temporal(TemporalType.TIMESTAMP)
// @Column(name = "STOP_DATE")
public Date getStopDate() {
return this.stopDate;
}
public void setStopDate(Date stopDate) {
this.stopDate = stopDate;
}
// @PrePersist
// @PreUpdate
public void preUpdate() {
}
// @Column(name = "PT_JOB_ID")
public BigDecimal getJobId() {
return jobId;
}
public void setJobId(BigDecimal jobId) {
this.jobId = jobId;
}
// @Column(name = "EXECUTION_TIME")
public BigDecimal getExecutionTime() {
return executionTime;
}
public void setExecutionTime(BigDecimal executionTime) {
this.executionTime = executionTime;
}
// @Column(name = "JOB_UUID_ID")
public String getJobUUIDId() {
return jobUUIDId;
}
public void setJobUUIDId(String jobUUIDId) {
this.jobUUIDId = jobUUIDId;
}
// @Column(name = "PT_APPLICATION_ID")
public BigDecimal getPtApplicationId() {
return ptApplicationId;
}
public void setPtApplicationId(BigDecimal ptApplicationId) {
this.ptApplicationId = ptApplicationId;
}
// @Transient
// @Override
public BigDecimal getId() {
return getPtHistoryId();
}
// @Column(name = "EXECUTION_COMMENT")
public String getExecutionComment() {
return executionComment;
}
public void setExecutionComment(String executionComment) {
this.executionComment = executionComment;
}
// @Column(name = "STATUS")
public BigDecimal getStatus() {
return status;
}
public void setStatus(BigDecimal status) {
this.status = status;
}
// @Column(name = "POOL_SIZE")
public BigDecimal getPoolSize() {
return poolSize;
}
public void setPoolSize(BigDecimal poolSize) {
this.poolSize = poolSize;
}
// @Column(name = "QUEUE_SIZE")
public BigDecimal getQueueSize() {
return queueSize;
}
public void setQueueSize(BigDecimal queueSize) {
this.queueSize = queueSize;
}
// @Column(name = "PT_TRIGGER_ID")
public BigDecimal getPtTriggerId() {
return ptTriggerId;
}
public void setPtTriggerId(BigDecimal ptTriggerId) {
this.ptTriggerId = ptTriggerId;
}
// @Column(name = "TRIGGER_TYPE")
public String getTriggerType() {
return triggerType;
}
public void setTriggerType(String triggerType) {
this.triggerType = triggerType;
}
// @Column(name = "PT_EXECUTOR_ID")
public BigDecimal getPtExecutorId() {
return ptExecutorId;
}
public void setPtExecutorId(BigDecimal ptExecutorId) {
this.ptExecutorId = ptExecutorId;
}
}