annotate flys-backend/src/main/java/de/intevation/flys/model/FlowVelocityMeasurementValue.java @ 5818:a4ff4167be1e

Request feature info on all layers and show it as html if the server does not return valid gml. Non queryable layers produce an error message when the request fails. This is good enough
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 24 Apr 2013 17:33:27 +0200
parents ab7cf7789daf
children
rev   line source
2830
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.model;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
2
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
3 import java.io.Serializable;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
4 import java.math.BigDecimal;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
5 import java.util.Date;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
6
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
7 import javax.persistence.Entity;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
8 import javax.persistence.Id;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
9 import javax.persistence.Table;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
10 import javax.persistence.GeneratedValue;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
11 import javax.persistence.Column;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
12 import javax.persistence.SequenceGenerator;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
13 import javax.persistence.GenerationType;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
14 import javax.persistence.JoinColumn;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
15 import javax.persistence.OneToOne;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
16
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
17 import org.apache.log4j.Logger;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
18
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
19
4462
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
20 /** Measured Flow Velocities. */
2830
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
21 @Entity
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
22 @Table(name = "flow_velocity_measure_values")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
23 public class FlowVelocityMeasurementValue
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
24 implements Serializable
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
25 {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
26 private static Logger logger =
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
27 Logger.getLogger(FlowVelocityMeasurementValue.class);
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
28
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
29 private Integer id;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
30
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
31 private FlowVelocityMeasurement measurement;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
32
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
33 private BigDecimal station;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
34 private BigDecimal w;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
35 private BigDecimal q;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
36 private BigDecimal v;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
37
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
38 private Date datetime;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
39
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
40 private String description;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
41
4462
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
42 /** Non-mapped class holding same values. */
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
43 public static class FastFlowVelocityMeasurementValue {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
44 protected double station;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
45 protected double w;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
46 protected double q;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
47 protected double v;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
48 protected Date datetime;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
49 protected String description;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
50
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
51 public FastFlowVelocityMeasurementValue(double station,
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
52 double w, double q, double v, Date datetime, String description) {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
53 this.station = station;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
54 this.w = w;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
55 this.q = q;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
56 this.v = v;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
57 this.datetime = datetime;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
58 this.description = description;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
59 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
60
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
61 public double getStation() {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
62 return station;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
63 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
64
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
65 public double getW() {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
66 return w;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
67 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
68
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
69 public double getQ() {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
70 return q;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
71 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
72
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
73 public double getV() {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
74 return v;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
75 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
76
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
77 public Date getDatetime() {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
78 return datetime;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
79 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
80
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
81 public String getDescription() {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
82 return description;
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
83 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
84 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
85
2830
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
86
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
87 public FlowVelocityMeasurementValue() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
88 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
89
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
90
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
91 public FlowVelocityMeasurementValue(
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
92 FlowVelocityMeasurement measurement,
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
93 Date datetime,
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
94 BigDecimal station,
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
95 BigDecimal w,
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
96 BigDecimal q,
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
97 BigDecimal v,
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
98 String description
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
99 ) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
100 this.measurement = measurement;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
101 this.datetime = datetime;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
102 this.station = station;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
103 this.w = w;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
104 this.q = q;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
105 this.v = v;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
106 this.description = description;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
107 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
108
4462
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
109 public static FastFlowVelocityMeasurementValue getUnmapped(
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
110 double station, double w, double q, double v, Date datetime, String description) {
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
111 return new FastFlowVelocityMeasurementValue(
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
112 station, w, q, v, datetime, description);
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
113 }
ab7cf7789daf FlowVelocityMeasurementValue: Added 'fast' (db-unmapped) class to access values later.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 4461
diff changeset
114
2830
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
115 @Id
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
116 @SequenceGenerator(
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
117 name = "SEQUENCE_FV_MEASURE_VALUES_ID_SEQ",
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
118 sequenceName = "FV_MEASURE_VALUES_ID_SEQ",
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
119 allocationSize = 1)
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
120 @GeneratedValue(
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
121 strategy = GenerationType.SEQUENCE,
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
122 generator = "SEQUENCE_FV_MEASURE_VALUES_ID_SEQ")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
123 @Column(name = "id")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
124 public Integer getId() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
125 return id;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
126 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
127
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
128 public void setId(Integer id) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
129 this.id = id;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
130 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
131
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
132 @OneToOne
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
133 @JoinColumn(name = "measurements_id")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
134 public FlowVelocityMeasurement getMeasurement() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
135 return measurement;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
136 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
137
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
138 public void setMeasurement(FlowVelocityMeasurement measurement) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
139 this.measurement = measurement;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
140 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
141
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
142 @Column(name = "station")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
143 public BigDecimal getStation() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
144 return station;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
145 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
146
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
147 public void setStation(BigDecimal station) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
148 this.station = station;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
149 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
150
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
151 @Column(name = "datetime")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
152 public Date getDatetime() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
153 return datetime;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
154 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
155
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
156 public void setDatetime(Date datetime) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
157 this.datetime = datetime;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
158 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
159
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
160 @Column(name = "w")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
161 public BigDecimal getW() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
162 return w;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
163 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
164
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
165 public void setW(BigDecimal w) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
166 this.w = w;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
167 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
168
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
169 @Column(name = "q")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
170 public BigDecimal getQ() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
171 return q;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
172 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
173
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
174 public void setQ(BigDecimal q) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
175 this.q = q;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
176 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
177
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
178 @Column(name = "v")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
179 public BigDecimal getV() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
180 return v;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
181 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
182
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
183 public void setV(BigDecimal v) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
184 this.v = v;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
185 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
186
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
187 @Column(name = "description")
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
188 public String getDescription() {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
189 return description;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
190 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
191
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
192 public void setDescription(String description) {
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
193 this.description = description;
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
194 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
195 }
6faa47ca1fee Added new model classes for storing flow velocity measurements.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
196 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org