comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/Result.java @ 132:5a583cff97ea

Implementation of the Datainfrastructure for fetching Data from different DataStores. geo-backend/trunk@12 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 04 Sep 2009 08:11:30 +0000
parents
children b02310d7ffee
comparison
equal deleted inserted replaced
131:d8ff739b9f3b 132:5a583cff97ea
1 /**
2 *
3 */
4 package de.intevation.gnv.geobackend.base;
5
6 import java.util.Date;
7
8
9 /**
10 * Interface which provides the Methods for Accessing
11 * the Data of an ResultEntry
12 * @author Tim Englich <tim.englich@intevation.de>
13 *
14 */
15 public interface Result {
16
17 /**
18 * Returns the ResultDescriptor which provides the
19 * ResultMetadatse
20 * @return the ResultDescriptor
21 */
22 public ResultDescriptor getResultDescriptor();
23
24 /**
25 * Returns the Columnvalue as a String
26 * @param columnName the Name of the column
27 * @return the Columnvalue as a String
28 */
29 public String getString(String columnName);
30
31 /**
32 * Returns the Columnvalue as a Date
33 * @param columnName the Name of the column
34 * @return the Columnvalue as a Date
35 */
36 public Date getDate(String columnName);
37
38 /**
39 * Returns the Columnvalue as a Integer
40 * @param columnName the Name of the column
41 * @return the Columnvalue as a Integer
42 */
43 public Integer getInteger(String columnName);
44
45 /**
46 * Returns the Columnvalue as a Float
47 * @param columnName the Name of the column
48 * @return the Columnvalue as a Float
49 */
50 public Float getFloat(String columnName);
51
52 /**
53 * Returns the Columnvalue as a Double
54 * @param columnName the Name of the column
55 * @return the Columnvalue as a Double
56 */
57 public Double getDouble(String columnName);
58
59 /**
60 * Returns the Columnvalue as a Object
61 * @param columnName the Name of the column
62 * @return the Columnvalue as a Object
63 */
64 public Object getObject(String columnName);
65
66 /**
67 * Adds an new Coumnvalue to the Result.
68 * @param columnName the Name of the Column
69 * @param value the Value of the Column
70 */
71 public void addColumnValue(String columnName, Object value);
72 }

http://dive4elements.wald.intevation.org