com.elephantdrummer.model.PtJob 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.EntityNamedWithId;
//@Entity
//@Table(name = "PT_JOB")
//@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 PtJob {//implements EntityNamedWithId{
private static final long serialVersionUID = 1L;
// Fields
private BigDecimal ptJobId;
private String name;
// @Convert(converter=ConverterJobType.class)
// private String type;
// private String className;
private Date lastUpdateDate;
private boolean silent=false;
public PtJob() {
};
// Property accessors
// @Id
// @Column(name = "PT_JOB_ID", precision = 22, scale = 0)
// @GeneratedValue(strategy = GenerationType.IDENTITY)
public BigDecimal getPtJobId() {
return this.ptJobId;
}
public void setPtJobId(BigDecimal ptJobId) {
this.ptJobId = ptJobId;
}
// @Column(name = "NAME", length = 64)
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
// @Column(name = "TYPE", length = 512)
// public String getType() {
// return type;
// }
//
// public void setType(String type) {
// this.type = type;
// }
// @Transient
// @Override
// public BigDecimal getId() {
// return getGsbReleaseId();
// }
// @Column(name = "CLASSNAME")
// public String getClassName() {
// return this.className;
// }
//
// public void setClassName(String className) {
// this.className = className;
// }
// @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;
}
// @Transient
// @Override
public BigDecimal getId() {
return getPtJobId();
}
// @Transient
public boolean isSilent() {
return silent;
}
public void setSilent(boolean silent) {
this.silent = silent;
}
}