Mercurial > dive4elements > gnv-client
comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/Result.java @ 557:05fcb3c553fd 0.4
merged geo-backend/0.4
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:50 +0200 |
parents | 8aad9d098b08 |
children | 12f88239fb33 |
comparison
equal
deleted
inserted
replaced
540:80630520e25a | 557:05fcb3c553fd |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.geobackend.base; | |
5 | |
6 import java.io.Serializable; | |
7 import java.util.Date; | |
8 | |
9 | |
10 /** | |
11 * Interface which provides the Methods for Accessing | |
12 * the Data of an ResultEntry | |
13 * @author Tim Englich <tim.englich@intevation.de> | |
14 * | |
15 */ | |
16 public interface Result extends Serializable{ | |
17 | |
18 /** | |
19 * Returns the ResultDescriptor which provides the | |
20 * ResultMetadatse | |
21 * @return the ResultDescriptor | |
22 */ | |
23 public ResultDescriptor getResultDescriptor(); | |
24 | |
25 /** | |
26 * Returns the Columnvalue as a String | |
27 * @param columnName the Name of the column | |
28 * @return the Columnvalue as a String | |
29 */ | |
30 public String getString(String columnName); | |
31 | |
32 | |
33 public String getString(int column); | |
34 | |
35 /** | |
36 * Returns the Columnvalue as a Date | |
37 * @param columnName the Name of the column | |
38 * @return the Columnvalue as a Date | |
39 */ | |
40 public Date getDate(String columnName); | |
41 | |
42 public Date getDate(int column); | |
43 | |
44 /** | |
45 * Returns the Columnvalue as a Integer | |
46 * @param columnName the Name of the column | |
47 * @return the Columnvalue as a Integer | |
48 */ | |
49 public Integer getInteger(String columnName); | |
50 | |
51 public Integer getInteger(int column); | |
52 | |
53 /** | |
54 * Returns the Columnvalue as a Float | |
55 * @param columnName the Name of the column | |
56 * @return the Columnvalue as a Float | |
57 */ | |
58 public Float getFloat(String columnName); | |
59 | |
60 public Float getFloat(int column); | |
61 | |
62 /** | |
63 * Returns the Columnvalue as a Double | |
64 * @param columnName the Name of the column | |
65 * @return the Columnvalue as a Double | |
66 */ | |
67 public Double getDouble(String columnName); | |
68 | |
69 public Double getDouble(int column); | |
70 | |
71 /** | |
72 * Returns the Columnvalue as a Object | |
73 * @param columnName the Name of the column | |
74 * @return the Columnvalue as a Object | |
75 */ | |
76 public Object getObject(String columnName); | |
77 | |
78 public Object getObject(int column); | |
79 | |
80 /** | |
81 * Adds an new Coumnvalue to the Result. | |
82 * @param columnName the Name of the Column | |
83 * @param value the Value of the Column | |
84 */ | |
85 public void addColumnValue(int column, Object value); | |
86 } |