Mercurial > dive4elements > gnv-client
comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/Result.java @ 899:3f9fc88aec2b
merged geo-backend/1.0
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:57 +0200 |
parents | e9ca6be4dbd2 |
children | ebeb56428409 |
comparison
equal
deleted
inserted
replaced
875:5e9efdda6894 | 899:3f9fc88aec2b |
---|---|
1 package de.intevation.gnv.geobackend.base; | |
2 | |
3 import java.io.Serializable; | |
4 import java.util.Date; | |
5 | |
6 /** | |
7 * Interface which provides the Methods for Accessing | |
8 * the Data of an ResultEntry | |
9 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
10 * | |
11 */ | |
12 public interface Result extends Serializable{ | |
13 | |
14 /** | |
15 * Returns the ResultDescriptor which provides the | |
16 * ResultMetadatse | |
17 * @return the ResultDescriptor | |
18 */ | |
19 public ResultDescriptor getResultDescriptor(); | |
20 | |
21 /** | |
22 * Returns the Columnvalue as a String | |
23 * @param columnName the Name of the column | |
24 * @return the Columnvalue as a String | |
25 */ | |
26 public String getString(String columnName); | |
27 | |
28 /** | |
29 * Returns the Columnvalue as a String | |
30 * @param column the Position of the Column that should be returned. | |
31 * @return the Columnvalue as a String | |
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 /** | |
43 * Returns the Columnvalue as a Date | |
44 * @param column the Position of the Column that should be returned. | |
45 * @return the Columnvalue as a Date | |
46 */ | |
47 public Date getDate(int column); | |
48 | |
49 /** | |
50 * Returns the Columnvalue as a Integer | |
51 * @param columnName the Name of the column | |
52 * @return the Columnvalue as a Integer | |
53 */ | |
54 public Integer getInteger(String columnName); | |
55 | |
56 /** | |
57 * Returns the Columnvalue as a Integer | |
58 * @param column the Position of the Column that should be returned. | |
59 * @return the Columnvalue as a Integer | |
60 */ | |
61 public Integer getInteger(int column); | |
62 | |
63 /** | |
64 * Returns the Columnvalue as a Float | |
65 * @param columnName the Name of the column | |
66 * @return the Columnvalue as a Float | |
67 */ | |
68 public Float getFloat(String columnName); | |
69 | |
70 /** | |
71 * Returns the Columnvalue as a Float | |
72 * @param column the Position of the Column that should be returned. | |
73 * @return the Columnvalue as a Float | |
74 */ | |
75 public Float getFloat(int column); | |
76 | |
77 /** | |
78 * Returns the Columnvalue as a Double | |
79 * @param columnName the Name of the column | |
80 * @return the Columnvalue as a Double | |
81 */ | |
82 public Double getDouble(String columnName); | |
83 | |
84 /** | |
85 * Returns the Columnvalue as a Double | |
86 * @param column the Position of the Column that should be returned. | |
87 * @return the Columnvalue as a Double | |
88 */ | |
89 public Double getDouble(int column); | |
90 | |
91 /** | |
92 * Returns the Columnvalue as a Object | |
93 * @param columnName the Name of the column | |
94 * @return the Columnvalue as a Object | |
95 */ | |
96 public Object getObject(String columnName); | |
97 | |
98 /** | |
99 * Returns the Columnvalue as a Object | |
100 * @param column the Position of the Column that should be returned. | |
101 * @return the Columnvalue as a Object | |
102 */ | |
103 public Object getObject(int column); | |
104 | |
105 /** | |
106 * Adds an new Columnvalue to the Result. | |
107 * @param column the Position where the column should be inserted. | |
108 * @param value the Value of the Column | |
109 */ | |
110 public void addColumnValue(int column, Object value); | |
111 } |