114 lines
2.3 KiB
Java
114 lines
2.3 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.speciesdiscovery.shared;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
|
|
|
|
/**
|
|
* The Class GisLayerJob.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Feb 9, 2017
|
|
*/
|
|
@Entity
|
|
public class GisLayerJob extends DefaultJob{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = 2604265579184366453L;
|
|
private long totalPoints;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
protected int internalId;
|
|
|
|
/**
|
|
* Instantiates a new gis layer job.
|
|
*/
|
|
public GisLayerJob() {
|
|
}
|
|
|
|
/**
|
|
* Instantiates a new gis layer job.
|
|
*
|
|
* @param id the id
|
|
* @param name the name
|
|
* @param startTime the start time
|
|
* @param submitTime the submit time
|
|
* @param endTime the end time
|
|
* @param description the description
|
|
* @param state the state
|
|
*/
|
|
public GisLayerJob(String id, String name, long startTime, long submitTime, long endTime,long elapsedTime, String description, String state, long totalPoints) {
|
|
super(id, name, startTime, submitTime, endTime, description, state, elapsedTime);
|
|
this.totalPoints = totalPoints;
|
|
}
|
|
|
|
/**
|
|
* @return the totalPoints
|
|
*/
|
|
public long getTotalPoints() {
|
|
|
|
return totalPoints;
|
|
}
|
|
|
|
|
|
/**
|
|
* @param totalPoints the totalPoints to set
|
|
*/
|
|
public void setTotalPoints(long totalPoints) {
|
|
|
|
this.totalPoints = totalPoints;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* @return the internalId
|
|
*/
|
|
public int getInternalId() {
|
|
|
|
return internalId;
|
|
}
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
* @see java.lang.Object#toString()
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("GisLayerJob [totalPoints=");
|
|
builder.append(totalPoints);
|
|
builder.append(", internalId=");
|
|
builder.append(internalId);
|
|
builder.append(", id=");
|
|
builder.append(id);
|
|
builder.append(", name=");
|
|
builder.append(name);
|
|
builder.append(", startTime=");
|
|
builder.append(startTime);
|
|
builder.append(", submitTime=");
|
|
builder.append(submitTime);
|
|
builder.append(", endTime=");
|
|
builder.append(endTime);
|
|
builder.append(", description=");
|
|
builder.append(description);
|
|
builder.append(", state=");
|
|
builder.append(state);
|
|
builder.append(", elapsedTime=");
|
|
builder.append(elapsedTime);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
}
|