diff gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerMetaData.java @ 859:3fbabd4803d7

ISSUE252 Make it possible to export more than one Layer gnv-artifacts/trunk@983 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 26 Apr 2010 09:09:20 +0000
parents
children dfd02f8d3602
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerMetaData.java	Mon Apr 26 09:09:20 2010 +0000
@@ -0,0 +1,106 @@
+/**
+ *
+ */
+package de.intevation.gnv.state.layer;
+/**
+ * Beanclass for storing Metainformation to create Shapefiles or Layer
+ * in an WMS-Output.
+ * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
+ *
+ */
+public class LayerMetaData {
+
+    private String table = null;
+    private String geometryType = null;
+    private String where = null;
+    private String columns = null;
+    private String templateID = null;
+    private String[] queryValues = null;
+    private String geometryWKT = null;
+
+    /**
+     * Constructor
+     * @param table the Name of the Databasetable the Data should be fetched from.
+     * @param geometryType the Geometrytype of the Layer
+     * @param where the Query-Statement which should be used to fetch the Data.
+     * @param columns the Columnnames which should be fetched to generate the
+     *                Shapefile
+     * @param templateID the Id of the Template which should be used to create
+     *                   the Mapfileentry.
+     * @param queryValues the Values that should be used to Query the data
+     * @param geometryWKT The Geometry represented by as an WKT to Query the Data.
+     */
+    public LayerMetaData(String table, String geometryType, String where,
+                         String columns, String templateID, 
+                         String[] queryValues,String geometryWKT) {
+        super();
+        this.table = table;
+        this.geometryType = geometryType;
+        this.where = where;
+        this.columns = columns;
+        this.templateID = templateID;
+        this.queryValues = queryValues;
+        this.geometryWKT = geometryWKT;
+    }
+
+    /**
+     *  Returns the Geometry WKT
+     * @return  the Geometry WKT
+     */
+    public String getGeometryWKT() {
+        return geometryWKT;
+    }
+
+    /**
+     * Returns the Name of the Databasetable the Data should be fetched from.
+     * @return the Name of the Databasetable the Data should be fetched from.
+     */
+    public String getTable() {
+        return table;
+    }
+
+    /**
+     * Returns the Geometrytype of the Layer.
+     * @return the Geometrytype of the Layer.
+     */
+    public String getGeometryType() {
+        return geometryType;
+    }
+
+    /**
+     * Returns the Query-Statement which should be used to fetch the Data.
+     * @return the Query-Statement which should be used to fetch the Data.
+     */
+    public String getWhere() {
+        return where;
+    }
+
+    /**
+     * Returns the Columnnames which should be fetched to generate the
+     * Shapefile
+     * @return the Columnnames which should be fetched to generate the
+     *         Shapefile
+     */
+    public String getColumns() {
+        return columns;
+    }
+
+    /**
+     * Returns the Id of the Template which should be used to create
+     * the Mapfileentry.
+     * @return the Id of the Template which should be used to create
+     *         the Mapfileentry.
+     */
+    public String getTemplateID() {
+        return templateID;
+    }
+
+    /**
+     * Returns the Values that should be used to Query the data.
+     * @return the Values that should be used to Query the data.
+     */
+    public String[] getQueryValues() {
+        return queryValues;
+    }
+
+}

http://dive4elements.wald.intevation.org