ingo@3321: package de.intevation.flys.model; ingo@3321: ingo@3321: import java.io.Serializable; ingo@3321: ingo@3321: import javax.persistence.Entity; ingo@3321: import javax.persistence.Id; ingo@3321: import javax.persistence.Table; ingo@3321: import javax.persistence.GeneratedValue; ingo@3329: import javax.persistence.JoinColumn; ingo@3321: import javax.persistence.Column; ingo@3321: import javax.persistence.SequenceGenerator; ingo@3321: import javax.persistence.OneToOne; ingo@3321: import javax.persistence.GenerationType; ingo@3321: ingo@3321: ingo@3321: @Entity ingo@3321: @Table(name = "sq_relation_value") ingo@3321: public class SQRelationValue implements Serializable { ingo@3321: ingo@3321: private Integer id; ingo@3321: ingo@3321: private SQRelation sqRelation; ingo@3321: ingo@3321: private String parameter; ingo@3321: rrenkert@5429: private MeasurementStation measurementStation; rrenkert@5429: rrenkert@5429: private Double a; rrenkert@5429: private Double b; rrenkert@5429: private Double qMax; rrenkert@5429: private Double rSQ; rrenkert@5429: private Integer nTot; rrenkert@5429: private Integer nOutlier; rrenkert@5429: private Double cFerguson; rrenkert@5429: private Double cDuan; ingo@3321: ingo@3321: ingo@3329: protected SQRelationValue() { ingo@3329: } ingo@3329: ingo@3329: ingo@3329: public SQRelationValue( rrenkert@5429: SQRelation sqRelation, rrenkert@5429: String parameter, rrenkert@5429: MeasurementStation measurementStation, rrenkert@5429: Double a, rrenkert@5429: Double b, rrenkert@5429: Double qMax, rrenkert@5429: Double rSQ, rrenkert@5429: Integer nTot, rrenkert@5429: Integer nOutlier, rrenkert@5429: Double cFerguson, rrenkert@5429: Double cDuan ingo@3329: ) { rrenkert@5429: this.sqRelation = sqRelation; rrenkert@5429: this.parameter = parameter; rrenkert@5429: this.measurementStation = measurementStation; rrenkert@5429: this.a = a; rrenkert@5429: this.b = b; rrenkert@5429: this.qMax = qMax; rrenkert@5429: this.rSQ = rSQ; rrenkert@5429: this.nTot = nTot; rrenkert@5429: this.nOutlier = nOutlier; rrenkert@5429: this.cFerguson = cFerguson; rrenkert@5429: this.cDuan = cDuan; ingo@3329: } ingo@3329: ingo@3329: ingo@3321: @Id ingo@3321: @SequenceGenerator( ingo@3321: name = "SEQUENCE_SQ_VALUE_ID_SEQ", ingo@3321: sequenceName = "SQ_RELATION_VALUES_ID_SEQ", ingo@3321: allocationSize = 1) ingo@3321: @GeneratedValue( ingo@3321: strategy = GenerationType.SEQUENCE, ingo@3321: generator = "SEQUENCE_SQ_VALUE_ID_SEQ") ingo@3321: @Column(name = "id") ingo@3321: public Integer getId() { ingo@3321: return id; ingo@3321: } ingo@3321: ingo@3321: public void setId(Integer id) { ingo@3321: this.id = id; ingo@3321: } ingo@3321: ingo@3321: ingo@3321: @OneToOne ingo@3329: @JoinColumn(name = "sq_relation_id") ingo@3329: public SQRelation getSqRelation() { ingo@3321: return sqRelation; ingo@3321: } ingo@3321: ingo@3329: public void setSqRelation(SQRelation sqRelation) { ingo@3321: this.sqRelation = sqRelation; ingo@3321: } ingo@3321: ingo@3321: ingo@3321: @Column(name = "parameter") ingo@3321: public String getParameter() { ingo@3321: return parameter; ingo@3321: } ingo@3321: ingo@3321: public void setParameter(String parameter) { ingo@3321: this.parameter = parameter; ingo@3321: } ingo@3321: rrenkert@5429: @OneToOne rrenkert@5429: @JoinColumn(name = "measurement_station_id") rrenkert@5429: public MeasurementStation getMeasurementStation() { rrenkert@5429: return measurementStation; ingo@3321: } ingo@3321: rrenkert@5429: public void setMeasurementStation(MeasurementStation measurementStation) { rrenkert@5429: this.measurementStation = measurementStation; ingo@3321: } ingo@3321: ingo@3321: ingo@3321: @Column(name = "a") rrenkert@5429: public Double getA() { ingo@3321: return a; ingo@3321: } ingo@3321: rrenkert@5429: public void setA(Double a) { ingo@3321: this.a = a; ingo@3321: } ingo@3321: ingo@3321: ingo@3321: @Column(name = "b") rrenkert@5429: public Double getB() { ingo@3321: return b; ingo@3321: } ingo@3321: rrenkert@5429: public void setB(Double b) { ingo@3321: this.b = b; ingo@3321: } rrenkert@5429: rrenkert@5429: @Column(name = "qmax") rrenkert@5429: public Double getQMax() { rrenkert@5429: return qMax; rrenkert@5429: } rrenkert@5429: rrenkert@5429: public void setQMax(Double qMax) { rrenkert@5429: this.qMax = qMax; rrenkert@5429: } rrenkert@5429: rrenkert@5429: @Column(name = "rsq") rrenkert@5429: public Double getRSQ() { rrenkert@5429: return rSQ; rrenkert@5429: } rrenkert@5429: rrenkert@5429: public void setRSQ(Double rSQ) { rrenkert@5429: this.rSQ = rSQ; rrenkert@5429: } rrenkert@5429: rrenkert@5429: @Column(name = "ntot") rrenkert@5429: public Integer getNTot () { rrenkert@5429: return nTot; rrenkert@5429: } rrenkert@5429: rrenkert@5429: public void setNTot(Integer nTot) { rrenkert@5429: this.nTot = nTot; rrenkert@5429: } rrenkert@5429: rrenkert@5429: @Column(name = "noutl") rrenkert@5429: public Integer getNOutlier() { rrenkert@5429: return nOutlier; rrenkert@5429: } rrenkert@5429: rrenkert@5429: public void setNOutlier(Integer nOutlier) { rrenkert@5429: this.nOutlier = nOutlier; rrenkert@5429: } rrenkert@5429: rrenkert@5429: @Column(name = "cferguson") rrenkert@5429: public Double getCFerguson() { rrenkert@5429: return cFerguson; rrenkert@5429: } rrenkert@5429: rrenkert@5429: public void setCFerguson(Double cFerguson) { rrenkert@5429: this.cFerguson = cFerguson; rrenkert@5429: } rrenkert@5429: rrenkert@5429: @Column(name = "cduan") rrenkert@5429: public Double getCDuan() { rrenkert@5429: return cDuan; rrenkert@5429: } rrenkert@5429: rrenkert@5429: public void setCDuan(Double cDuan) { rrenkert@5429: this.cDuan = cDuan; rrenkert@5429: } ingo@3321: } ingo@3321: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :