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

com.elephantdrummer.model.PtApplication Maven / Gradle / Ivy

There is a newer version: 1.2.5
Show newest version
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_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 PtApplication  {//implements EntityNamedWithId{

	private static final long serialVersionUID = 1L;

	// Fields

	private BigDecimal ptApplicationId;
	private String host;
	private String ip;
	private Date insertDate;
	private String applicationName;
	private Date heartbeatDate;
	private String nodeName;
	private String libraryVersion;
	private String applicationDescription;
	private String platform;
	private Boolean changeOrdered;
	private String timeToNearestExecution;

	public PtApplication() {
	};



	// Property accessors

//	@Id
//	@Column(name = "PT_APPLICATION_ID", precision = 22, scale = 0)
//	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public BigDecimal getPtApplicationId() {
		return this.ptApplicationId;
	}

	public void setPtApplicationId(BigDecimal ptApplicationId) {
		this.ptApplicationId = ptApplicationId;
	}



//	@Column(name = "HOST", length = 512)
	public String getHost() {
		return this.host;
	}

	public void setHost(String host) {
		this.host = host;
	}


//	@Column(name = "IP")
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	
//	@PrePersist
//	@PreUpdate
	public void preUpdate() {
		setInsertDate(new Date());
	}

//	@Temporal(TemporalType.TIMESTAMP)
//	@Column(name = "INSERT_DATE")
	public Date getInsertDate() {
		return insertDate;
	}



	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}


//	@Column(name = "APP_NAME")
	public String getApplicationName() {
		return applicationName;
	}



	public void setApplicationName(String applicationName) {
		this.applicationName = applicationName;
	}

//	@Transient
//	@Override
	public BigDecimal getId() {
		return getPtApplicationId();
	}


//	@Temporal(TemporalType.TIMESTAMP)
//	@Column(name = "HEARTBEAT_DATE")
	public Date getHeartbeatDate() {
		return heartbeatDate;
	}



	public void setHeartbeatDate(Date heartbeatDate) {
		this.heartbeatDate = heartbeatDate;
	}


//	@Column(name = "NODE_NAME")
	public String getNodeName() {
		return nodeName;
	}



	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}


//	@Transient
//	@Override
	public String getName() {
		return getApplicationName();
	}


//	@Column(name = "LIBRARY_VERSION")
	public String getLibraryVersion() {
		return libraryVersion;
	}



	public void setLibraryVersion(String libraryVersion) {
		this.libraryVersion = libraryVersion;
	}


//	@Column(name = "APPLICATION_DESCRIPTION", length = 512)
	public String getApplicationDescription() {
		return applicationDescription;
	}



	public void setApplicationDescription(String applicationDescription) {
		this.applicationDescription = applicationDescription;
	}


//	@Column(name = "CHANGE_ORDERED")
	public Boolean getChangeOrdered() {
		return changeOrdered;
	}



	public void setChangeOrdered(Boolean changeOrdered) {
		this.changeOrdered = changeOrdered;
	}


//	@Column(name = "PLATFORM")
	public String getPlatform() {
		return platform;
	}



	public void setPlatform(String platform) {
		this.platform = platform;
	}


//	@Transient
	public String getTimeToNearestExecution() {
		return timeToNearestExecution;
	}



	public void setTimeToNearestExecution(String timeToNearestExecution) {
		this.timeToNearestExecution = timeToNearestExecution;
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy