comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/Result.java @ 1129:ccfa07b88476

merged geo-backend
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:01 +0200
parents ebeb56428409
children
comparison
equal deleted inserted replaced
1119:7c4f81f74c47 1129:ccfa07b88476
1 /*
2 * Copyright (c) 2010 by Intevation GmbH
3 *
4 * This program is free software under the LGPL (>=v2.1)
5 * Read the file LGPL.txt coming with the software for details
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */
8
9 package de.intevation.gnv.geobackend.base;
10
11 import java.io.Serializable;
12 import java.util.Date;
13
14 /**
15 * Interface which provides the Methods for Accessing
16 * the Data of an ResultEntry
17 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
18 *
19 */
20 public interface Result extends Serializable{
21
22 /**
23 * Returns the ResultDescriptor which provides the
24 * ResultMetadatse
25 * @return the ResultDescriptor
26 */
27 public ResultDescriptor getResultDescriptor();
28
29 /**
30 * Returns the Columnvalue as a String
31 * @param columnName the Name of the column
32 * @return the Columnvalue as a String
33 */
34 public String getString(String columnName);
35
36 /**
37 * Returns the Columnvalue as a String
38 * @param column the Position of the Column that should be returned.
39 * @return the Columnvalue as a String
40 */
41 public String getString(int column);
42
43 /**
44 * Returns the Columnvalue as a Date
45 * @param columnName the Name of the column
46 * @return the Columnvalue as a Date
47 */
48 public Date getDate(String columnName);
49
50 /**
51 * Returns the Columnvalue as a Date
52 * @param column the Position of the Column that should be returned.
53 * @return the Columnvalue as a Date
54 */
55 public Date getDate(int column);
56
57 /**
58 * Returns the Columnvalue as a Integer
59 * @param columnName the Name of the column
60 * @return the Columnvalue as a Integer
61 */
62 public Integer getInteger(String columnName);
63
64 /**
65 * Returns the Columnvalue as a Integer
66 * @param column the Position of the Column that should be returned.
67 * @return the Columnvalue as a Integer
68 */
69 public Integer getInteger(int column);
70
71 /**
72 * Returns the Columnvalue as a Float
73 * @param columnName the Name of the column
74 * @return the Columnvalue as a Float
75 */
76 public Float getFloat(String columnName);
77
78 /**
79 * Returns the Columnvalue as a Float
80 * @param column the Position of the Column that should be returned.
81 * @return the Columnvalue as a Float
82 */
83 public Float getFloat(int column);
84
85 /**
86 * Returns the Columnvalue as a Double
87 * @param columnName the Name of the column
88 * @return the Columnvalue as a Double
89 */
90 public Double getDouble(String columnName);
91
92 /**
93 * Returns the Columnvalue as a Double
94 * @param column the Position of the Column that should be returned.
95 * @return the Columnvalue as a Double
96 */
97 public Double getDouble(int column);
98
99 /**
100 * Returns the Columnvalue as a Object
101 * @param columnName the Name of the column
102 * @return the Columnvalue as a Object
103 */
104 public Object getObject(String columnName);
105
106 /**
107 * Returns the Columnvalue as a Object
108 * @param column the Position of the Column that should be returned.
109 * @return the Columnvalue as a Object
110 */
111 public Object getObject(int column);
112
113 /**
114 * Adds an new Columnvalue to the Result.
115 * @param column the Position where the column should be inserted.
116 * @param value the Value of the Column
117 */
118 public void addColumnValue(int column, Object value);
119 }

http://dive4elements.wald.intevation.org