changeset 5081:1d95391d056b dami

Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 24 Feb 2013 12:56:20 +0100
parents 0fd7720e5c7f
children fb4d87274f28
files flys-backend/src/main/java/de/intevation/flys/backend/SpatialInfo.java flys-backend/src/main/java/de/intevation/flys/model/BoundaryKind.java flys-backend/src/main/java/de/intevation/flys/model/FedState.java flys-backend/src/main/java/de/intevation/flys/model/HWSKind.java flys-backend/src/main/java/de/intevation/flys/model/HWSLine.java flys-backend/src/main/java/de/intevation/flys/model/HWSPoint.java flys-backend/src/main/java/de/intevation/flys/model/SectieKind.java flys-backend/src/main/java/de/intevation/flys/model/SobekKind.java
diffstat 8 files changed, 154 insertions(+), 275 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/backend/SpatialInfo.java	Thu Feb 21 12:36:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/backend/SpatialInfo.java	Sun Feb 24 12:56:20 2013 +0100
@@ -10,7 +10,6 @@
 import de.intevation.flys.model.Building;
 import de.intevation.flys.model.CrossSectionTrack;
 import de.intevation.flys.model.Fixpoint;
-import de.intevation.flys.model.Line;
 import de.intevation.flys.model.River;
 import de.intevation.flys.model.RiverAxis;
 
@@ -112,23 +111,6 @@
     }
 
 
-    protected void doLinesInfo(River river) {
-        Query query = session.createQuery(
-            "from Line where river =:river");
-        query.setParameter("river", river);
-
-        List<Line> list = query.list();
-
-        if (list == null || list.size() == 0) {
-            logger.warn("No Lines for '" + river.getName() + "' found!");
-            return;
-        }
-        else {
-            logger.info("River contains " + list.size() + " Lines.");
-        }
-    }
-
-
     protected void doBuildingsInfo(River river) {
         Query query = session.createQuery(
             "from Building where river =:river");
--- a/flys-backend/src/main/java/de/intevation/flys/model/BoundaryKind.java	Thu Feb 21 12:36:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/BoundaryKind.java	Sun Feb 24 12:56:20 2013 +0100
@@ -7,14 +7,10 @@
 import javax.persistence.Id;
 import javax.persistence.Table;
 
-import org.hibernate.Session;
-import org.hibernate.Query;
-
-import de.intevation.flys.backend.SessionHolder;
-
 @Entity
 @Table(name = "boundary_kinds")
 public class BoundaryKind implements Serializable {
+
     private Integer id;
     private String name;
 
@@ -34,8 +30,7 @@
      * @return name of the kind of boundary as String.
      */
     @Column(name = "name")
-    public String getName()
-    {
+    public String getName() {
         return name;
     }
 
@@ -44,14 +39,7 @@
      *
      * @param name the value to set.
      */
-    public void setName(String name)
-    {
+    public void setName(String name) {
         this.name = name;
     }
-};
-
-
-
-
-
-
+}
--- a/flys-backend/src/main/java/de/intevation/flys/model/FedState.java	Thu Feb 21 12:36:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/FedState.java	Sun Feb 24 12:56:20 2013 +0100
@@ -5,18 +5,12 @@
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.OneToOne;
 import javax.persistence.Table;
 
-import org.hibernate.Session;
-import org.hibernate.Query;
-
-import de.intevation.flys.backend.SessionHolder;
-
 @Entity
 @Table(name = "fed_states")
 public class FedState implements Serializable {
+
     private Integer id;
     private String name;
 
@@ -36,8 +30,7 @@
      * @return name of the Federal State as String.
      */
     @Column(name = "name")
-    public String getName()
-    {
+    public String getName() {
         return name;
     }
 
@@ -46,8 +39,7 @@
      *
      * @param name the value to set.
      */
-    public void setName(String name)
-    {
+    public void setName(String name) {
         this.name = name;
     }
-};
+}
--- a/flys-backend/src/main/java/de/intevation/flys/model/HWSKind.java	Thu Feb 21 12:36:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/HWSKind.java	Sun Feb 24 12:56:20 2013 +0100
@@ -7,11 +7,6 @@
 import javax.persistence.Id;
 import javax.persistence.Table;
 
-import org.hibernate.Session;
-import org.hibernate.Query;
-
-import de.intevation.flys.backend.SessionHolder;
-
 @Entity
 @Table(name = "hws_kinds")
 public class HWSKind implements Serializable {
@@ -34,8 +29,7 @@
      * @return The name of the Hochwasserschutzanlagenart as String.
      */
     @Column(name = "name")
-    public String getName()
-    {
+    public String getName() {
         return name;
     }
 
@@ -44,11 +38,7 @@
      *
      * @param name the value to set.
      */
-    public void setName(String name)
-    {
+    public void setName(String name) {
         this.name = name;
     }
-};
-
-
-
+}
--- a/flys-backend/src/main/java/de/intevation/flys/model/HWSLine.java	Thu Feb 21 12:36:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/HWSLine.java	Sun Feb 24 12:56:20 2013 +0100
@@ -1,5 +1,9 @@
 package de.intevation.flys.model;
 
+import com.vividsolutions.jts.geom.Geometry;
+
+import de.intevation.flys.model.HWSKind;
+
 import java.io.Serializable;
 
 import javax.persistence.Column;
@@ -9,35 +13,28 @@
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
 
-import org.hibernate.Session;
-import org.hibernate.Query;
 import org.hibernate.annotations.Type;
 
-import de.intevation.flys.backend.SessionHolder;
-import de.intevation.flys.model.HWSKind;
-
-import com.vividsolutions.jts.geom.Geometry;
-
 @Entity
 @Table(name = "hws_lines")
 public class HWSLine implements Serializable {
 
-    private Integer    id;
+    private Integer  id;
 
-    private Integer    ogr_fid;
-    private HWSKind    kind;
-    private FedState  fedState;
-    private River     river;
-    private Integer   offical;
-    private Integer   shore_side;
-    private String    name;
-    private String    path;
-    private String    agency;
-    private String    range;
-    private String    source;
-    private String    status_date;
-    private String    description;
-    private Geometry     geom;
+    private Integer  ogrFid;
+    private HWSKind  kind;
+    private FedState fedState;
+    private River    river;
+    private Integer  offical;
+    private Integer  shoreSide;
+    private String   name;
+    private String   path;
+    private String   agency;
+    private String   range;
+    private String   source;
+    private String   status_date;
+    private String   description;
+    private Geometry geom;
 
     @Id
     @Column(name = "id")
@@ -61,24 +58,22 @@
     }
 
     /**
-     * Get ogr_fid.
+     * Get ogrFid.
      *
-     * @return ogr_fid as Integer.
+     * @return ogrFid as Integer.
      */
     @Column(name = "ogr_fid")
-    public Integer getOgrFid()
-    {
-        return ogr_fid;
+    public Integer getOgrFid() {
+        return ogrFid;
     }
 
     /**
-     * Set ogr_fid.
+     * Set ogrFid.
      *
-     * @param ogr_fid the value to set.
+     * @param ogrFid the value to set.
      */
-    public void setOgrFid(Integer ogr_fid)
-    {
-        this.ogr_fid = ogr_fid;
+    public void setOgrFid(Integer ogrFid) {
+        this.ogrFid = ogrFid;
     }
 
 
@@ -88,8 +83,7 @@
      * @return offical as Integer.
      */
     @Column(name = "offical")
-    public Integer getOffical()
-    {
+    public Integer getOffical() {
         return offical;
     }
 
@@ -98,30 +92,27 @@
      *
      * @param offical the value to set.
      */
-    public void setOffical(Integer offical)
-    {
+    public void setOffical(Integer offical) {
         this.offical = offical;
     }
 
     /**
-     * Get shore_side.
+     * Get shoreSide.
      *
-     * @return shore_side as Integer.
+     * @return shoreSide as Integer.
      */
     @Column(name = "shore_side")
-    public Integer getShoreSide()
-    {
-        return shore_side;
+    public Integer getShoreSide() {
+        return shoreSide;
     }
 
     /**
-     * Set shore_side.
+     * Set shoreSide.
      *
-     * @param shore_side the value to set.
+     * @param shoreSide the value to set.
      */
-    public void setShoreSide(Integer shore_side)
-    {
-        this.shore_side = shore_side;
+    public void setShoreSide(Integer shoreSide) {
+        this.shoreSide = shoreSide;
     }
 
     /**
@@ -130,8 +121,7 @@
      * @return name as String.
      */
     @Column(name = "name")
-    public String getName()
-    {
+    public String getName() {
         return name;
     }
 
@@ -140,8 +130,7 @@
      *
      * @param name the value to set.
      */
-    public void setName(String name)
-    {
+    public void setName(String name) {
         this.name = name;
     }
 
@@ -151,8 +140,7 @@
      * @return path as String.
      */
     @Column(name = "path")
-    public String getPath()
-    {
+    public String getPath() {
         return path;
     }
 
@@ -161,8 +149,7 @@
      *
      * @param path the value to set.
      */
-    public void setPath(String path)
-    {
+    public void setPath(String path) {
         this.path = path;
     }
 
@@ -172,8 +159,7 @@
      * @return agency as String.
      */
     @Column(name = "agency")
-    public String getAgency()
-    {
+    public String getAgency() {
         return agency;
     }
 
@@ -182,8 +168,7 @@
      *
      * @param agency the value to set.
      */
-    public void setAgency(String agency)
-    {
+    public void setAgency(String agency) {
         this.agency = agency;
     }
 
@@ -193,8 +178,7 @@
      * @return range as String.
      */
     @Column(name = "range")
-    public String getRange()
-    {
+    public String getRange() {
         return range;
     }
 
@@ -203,8 +187,7 @@
      *
      * @param range the value to set.
      */
-    public void setRange(String range)
-    {
+    public void setRange(String range) {
         this.range = range;
     }
 
@@ -214,8 +197,7 @@
      * @return source as String.
      */
     @Column(name = "source")
-    public String getSource()
-    {
+    public String getSource() {
         return source;
     }
 
@@ -224,8 +206,7 @@
      *
      * @param source the value to set.
      */
-    public void setSource(String source)
-    {
+    public void setSource(String source) {
         this.source = source;
     }
 
@@ -235,8 +216,7 @@
      * @return status_date as String.
      */
     @Column(name = "status_date")
-    public String getStatusDate()
-    {
+    public String getStatusDate() {
         return status_date;
     }
 
@@ -245,8 +225,7 @@
      *
      * @param status_date the value to set.
      */
-    public void setStatusDate(String status_date)
-    {
+    public void setStatusDate(String status_date) {
         this.status_date = status_date;
     }
 
@@ -256,8 +235,7 @@
      * @return description as String.
      */
     @Column(name = "description")
-    public String getDescription()
-    {
+    public String getDescription() {
         return description;
     }
 
@@ -266,8 +244,7 @@
      *
      * @param description the value to set.
      */
-    public void setDescription(String description)
-    {
+    public void setDescription(String description) {
         this.description = description;
     }
 
@@ -278,8 +255,7 @@
      */
     @OneToOne
     @JoinColumn(name = "kind_id")
-    public HWSKind getKind()
-    {
+    public HWSKind getKind() {
         return kind;
     }
 
@@ -288,8 +264,7 @@
      *
      * @param kind the value to set.
      */
-    public void setKind(HWSKind kind)
-    {
+    public void setKind(HWSKind kind) {
         this.kind = kind;
     }
 
@@ -300,8 +275,7 @@
      */
     @OneToOne
     @JoinColumn(name = "fed_state_id")
-    public FedState getFedState()
-    {
+    public FedState getFedState() {
         return fedState;
     }
 
@@ -310,8 +284,7 @@
      *
      * @param fedState the value to set.
      */
-    public void setFedState(FedState fedState)
-    {
+    public void setFedState(FedState fedState) {
         this.fedState = fedState;
     }
 
@@ -322,8 +295,7 @@
      */
     @OneToOne
     @JoinColumn(name = "river_id")
-    public River getRiver()
-    {
+    public River getRiver() {
         return river;
     }
 
@@ -332,8 +304,7 @@
      *
      * @param river the value to set.
      */
-    public void setRiver(River river)
-    {
+    public void setRiver(River river) {
         this.river = river;
     }
 }
--- a/flys-backend/src/main/java/de/intevation/flys/model/HWSPoint.java	Thu Feb 21 12:36:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/HWSPoint.java	Sun Feb 24 12:56:20 2013 +0100
@@ -1,7 +1,9 @@
 package de.intevation.flys.model;
 
+import com.vividsolutions.jts.geom.Geometry;
+
 import java.io.Serializable;
-import java.util.List;
+
 import java.math.BigDecimal;
 
 import javax.persistence.Column;
@@ -11,40 +13,33 @@
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
 
-import org.hibernate.Session;
-import org.hibernate.Query;
 import org.hibernate.annotations.Type;
 
-import com.vividsolutions.jts.geom.Geometry;
-
-
-import de.intevation.flys.backend.SessionHolder;
-
 @Entity
 @Table(name = "hws_points")
 public class HWSPoint implements Serializable {
 
     private Integer    id;
 
-    private Integer    ogr_fid;
+    private Integer    ogrFid;
     private HWSKind    kind;
-    private FedState  fedState;
-    private River     river;
-    private Integer   offical;
-    private Integer   shore_side;
-    private String    name;
-    private String    path;
-    private String    agency;
-    private String    range;
-    private String    source;
-    private String    status_date;
-    private String    description;
-    private BigDecimal    freeboard;
-    private BigDecimal    dike_km;
-    private BigDecimal    z;
-    private BigDecimal    z_target;
-    private BigDecimal    rated_level;
-    private Geometry     geom;
+    private FedState   fedState;
+    private River      river;
+    private Integer    offical;
+    private Integer    shoreSide;
+    private String     name;
+    private String     path;
+    private String     agency;
+    private String     range;
+    private String     source;
+    private String     statusDate;
+    private String     description;
+    private BigDecimal freeboard;
+    private BigDecimal dikeKm;
+    private BigDecimal z;
+    private BigDecimal zTarget;
+    private BigDecimal ratedLevel;
+    private Geometry   geom;
 
     @Id
     @Column(name = "id")
@@ -69,24 +64,22 @@
     }
 
     /**
-     * Get ogr_fid.
+     * Get ogrFid.
      *
-     * @return ogr_fid as Integer.
+     * @return ogrFid as Integer.
      */
     @Column(name = "ogr_fid")
-    public Integer getOgrFid()
-    {
-        return ogr_fid;
+    public Integer getOgrFid() {
+        return ogrFid;
     }
 
     /**
-     * Set ogr_fid.
+     * Set ogrFid.
      *
-     * @param ogr_fid the value to set.
+     * @param ogrFid the value to set.
      */
-    public void setOgrFid(Integer ogr_fid)
-    {
-        this.ogr_fid = ogr_fid;
+    public void setOgrFid(Integer ogrFid) {
+        this.ogrFid = ogrFid;
     }
 
 
@@ -96,8 +89,7 @@
      * @return offical as Integer.
      */
     @Column(name = "offical")
-    public Integer getOffical()
-    {
+    public Integer getOffical() {
         return offical;
     }
 
@@ -106,30 +98,27 @@
      *
      * @param offical the value to set.
      */
-    public void setOffical(Integer offical)
-    {
+    public void setOffical(Integer offical) {
         this.offical = offical;
     }
 
     /**
-     * Get shore_side.
+     * Get shoreSide.
      *
-     * @return shore_side as Integer.
+     * @return shoreSide as Integer.
      */
     @Column(name = "shore_side")
-    public Integer getShoreSide()
-    {
-        return shore_side;
+    public Integer getShoreSide() {
+        return shoreSide;
     }
 
     /**
-     * Set shore_side.
+     * Set shoreSide.
      *
-     * @param shore_side the value to set.
+     * @param shoreSide the value to set.
      */
-    public void setShoreSide(Integer shore_side)
-    {
-        this.shore_side = shore_side;
+    public void setShoreSide(Integer shoreSide) {
+        this.shoreSide = shoreSide;
     }
 
     /**
@@ -138,8 +127,7 @@
      * @return name as String.
      */
     @Column(name = "name")
-    public String getName()
-    {
+    public String getName() {
         return name;
     }
 
@@ -148,8 +136,7 @@
      *
      * @param name the value to set.
      */
-    public void setName(String name)
-    {
+    public void setName(String name) {
         this.name = name;
     }
 
@@ -159,8 +146,7 @@
      * @return path as String.
      */
     @Column(name = "path")
-    public String getPath()
-    {
+    public String getPath() {
         return path;
     }
 
@@ -169,8 +155,7 @@
      *
      * @param path the value to set.
      */
-    public void setPath(String path)
-    {
+    public void setPath(String path) {
         this.path = path;
     }
 
@@ -180,8 +165,7 @@
      * @return agency as String.
      */
     @Column(name = "agency")
-    public String getAgency()
-    {
+    public String getAgency() {
         return agency;
     }
 
@@ -190,8 +174,7 @@
      *
      * @param agency the value to set.
      */
-    public void setAgency(String agency)
-    {
+    public void setAgency(String agency) {
         this.agency = agency;
     }
 
@@ -201,8 +184,7 @@
      * @return range as String.
      */
     @Column(name = "range")
-    public String getRange()
-    {
+    public String getRange() {
         return range;
     }
 
@@ -211,8 +193,7 @@
      *
      * @param range the value to set.
      */
-    public void setRange(String range)
-    {
+    public void setRange(String range) {
         this.range = range;
     }
 
@@ -222,8 +203,7 @@
      * @return source as String.
      */
     @Column(name = "source")
-    public String getSource()
-    {
+    public String getSource() {
         return source;
     }
 
@@ -232,30 +212,28 @@
      *
      * @param source the value to set.
      */
-    public void setSource(String source)
-    {
+    public void setSource(String source) {
         this.source = source;
     }
 
     /**
-     * Get status_date.
+     * Get statusDate.
      *
-     * @return status_date as String.
+     * @return statusDate as String.
      */
     @Column(name = "status_date")
-    public String getStatusDate()
-    {
-        return status_date;
+    public String getStatusDate() {
+        return statusDate;
     }
 
     /**
-     * Set status_date.
+     * Set statusDate.
      *
-     * @param status_date the value to set.
+     * @param statusDate the value to set.
      */
-    public void setStatusDate(String status_date)
+    public void setStatusDate(String statusDate)
     {
-        this.status_date = status_date;
+        this.statusDate = statusDate;
     }
 
     /**
@@ -301,24 +279,24 @@
     }
 
     /**
-     * Get dike_km.
+     * Get dikeKm.
      *
-     * @return dike_km as BigDecimal.
+     * @return dikeKm as BigDecimal.
      */
     @Column(name = "dike_km")
-    public BigDecimal getDike_km()
+    public BigDecimal getDikeKm()
     {
-        return dike_km;
+        return dikeKm;
     }
 
     /**
-     * Set dike_km.
+     * Set dikeKm.
      *
-     * @param dike_km the value to set.
+     * @param dikeKm the value to set.
      */
-    public void setDike_km(BigDecimal dike_km)
+    public void setDikeKm(BigDecimal dikeKm)
     {
-        this.dike_km = dike_km;
+        this.dikeKm = dikeKm;
     }
 
     /**
@@ -343,45 +321,45 @@
     }
 
     /**
-     * Get z_target.
+     * Get zTarget.
      *
-     * @return z_target as BigDecimal.
+     * @return zTarget as BigDecimal.
      */
     @Column(name = "z_target")
     public BigDecimal getZTarget()
     {
-        return z_target;
+        return zTarget;
     }
 
     /**
-     * Set z_target.
+     * Set zTarget.
      *
-     * @param z_target the value to set.
+     * @param zTarget the value to set.
      */
-    public void setZTarget(BigDecimal z_target)
+    public void setZTarget(BigDecimal zTarget)
     {
-        this.z_target = z_target;
+        this.zTarget = zTarget;
     }
 
     /**
-     * Get rated_level.
+     * Get ratedLevel.
      *
-     * @return rated_level as BigDecimal.
+     * @return ratedLevel as BigDecimal.
      */
     @Column(name = "rated_level")
     public BigDecimal getRatedLevel()
     {
-        return rated_level;
+        return ratedLevel;
     }
 
     /**
-     * Set rated_level.
+     * Set ratedLevel.
      *
-     * @param rated_level the value to set.
+     * @param ratedLevel the value to set.
      */
-    public void setRatedLevel(BigDecimal rated_level)
+    public void setRatedLevel(BigDecimal ratedLevel)
     {
-        this.rated_level = rated_level;
+        this.ratedLevel = ratedLevel;
     }
 
     /**
--- a/flys-backend/src/main/java/de/intevation/flys/model/SectieKind.java	Thu Feb 21 12:36:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/SectieKind.java	Sun Feb 24 12:56:20 2013 +0100
@@ -7,11 +7,6 @@
 import javax.persistence.Id;
 import javax.persistence.Table;
 
-import org.hibernate.Session;
-import org.hibernate.Query;
-
-import de.intevation.flys.backend.SessionHolder;
-
 @Entity
 @Table(name = "sectie_kinds")
 public class SectieKind implements Serializable {
@@ -34,8 +29,7 @@
      * @return name of the kind of sectie as String.
      */
     @Column(name = "name")
-    public String getName()
-    {
+    public String getName() {
         return name;
     }
 
@@ -44,12 +38,7 @@
      *
      * @param name the value to set.
      */
-    public void setName(String name)
-    {
+    public void setName(String name) {
         this.name = name;
     }
-};
-
-
-
-
+}
--- a/flys-backend/src/main/java/de/intevation/flys/model/SobekKind.java	Thu Feb 21 12:36:30 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/model/SobekKind.java	Sun Feb 24 12:56:20 2013 +0100
@@ -7,14 +7,10 @@
 import javax.persistence.Id;
 import javax.persistence.Table;
 
-import org.hibernate.Session;
-import org.hibernate.Query;
-
-import de.intevation.flys.backend.SessionHolder;
-
 @Entity
 @Table(name = "sobek_kinds")
 public class SobekKind implements Serializable {
+
     private Integer id;
     private String name;
 
@@ -34,8 +30,7 @@
      * @return name of the kind of sobek as String.
      */
     @Column(name = "name")
-    public String getName()
-    {
+    public String getName() {
         return name;
     }
 
@@ -44,13 +39,7 @@
      *
      * @param name the value to set.
      */
-    public void setName(String name)
-    {
+    public void setName(String name) {
         this.name = name;
     }
-};
-
-
-
-
-
+}

http://dive4elements.wald.intevation.org