/*
* Ext GWT - Ext for GWT
* Copyright(c) 2007-2009, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
package com.nimbits.client.objects;
import java.io.Serializable;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "false")
public class RecordedValue implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
public Long id;
public RecordedValue() {
}
//private static final long serialVersionUID = 1L;
@Persistent
private String note;
public String getNote() {
return note;
}
public void setNote(String n) {
this.note = n;
}
public double getLatitude() {
double retObj;
if (lat == null)
{
retObj = 0;
}
else
{
retObj = lat;
}
return retObj;
}
public void setLatitude(double latitude) {
this.lat = latitude;
}
public double getLongitude() {
double retObj;
if (lng == null)
{
retObj = 0;
}
else
{
retObj = lng;
}
return retObj;
}
public void setLongitude(double longitude) {
this.lng = longitude;
}
@Persistent
private Double lat;
@Persistent
private Double lng;
@Persistent
private double d;
@Persistent
private Date timestamp;
@Persistent
private Long pointFK;
public Long getPoint() {
return pointFK;
}
public void setPointFK(Long long1) {
this.pointFK = long1;
}
public double getValue() {
return d;
}
public void setValue(double v) {
this.d =v;
}
public Date getTimestamp() {
return timestamp;
}
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
public Long getKey() {
return id;
}
// public String getPointFK() {
// return pointFK;
// }
//
// public void setPointFK(String k) {
// this.pointFK = k;
// }
}
|