comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/DefaultResultDescriptor.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.ArrayList;
7 import java.util.List;
8
9 /**
10 * This Class is the DefaultImplementation of the
11 * Interface ResultDescriptor
12 * @author Tim Englich <tim.englich@intevation.de>
13 *
14 */
15 public class DefaultResultDescriptor implements ResultDescriptor {
16
17 /**
18 * The Names of the Columns of one Result
19 */
20 private List<String> columnNames = new ArrayList<String>();
21
22 /**
23 * The Name of the Classes of the Values of one Result.
24 */
25 private List<String> columnClassNames = new ArrayList<String>();
26
27
28
29 /**
30 * Constructor
31 */
32 public DefaultResultDescriptor() {
33 super();
34 }
35
36 /**
37 * @see de.intevation.gnv.geobackend.base.ResultDescriptor#getColumnClassName(int)
38 */
39 public String getColumnClassName(int column) {
40 return this.columnClassNames.get(column);
41 }
42
43 /**
44 * @see de.intevation.gnv.geobackend.base.ResultDescriptor#getColumnCount()
45 */
46 public int getColumnCount() {
47 return this.columnClassNames.size();
48 }
49
50 /**
51 * @see de.intevation.gnv.geobackend.base.ResultDescriptor#getColumnName(int)
52 */
53 public String getColumnName(int column) {
54 return this.columnNames.get(column);
55 }
56
57 /**
58 * @see de.intevation.gnv.geobackend.base.ResultDescriptor#addColumn(java.lang.String, java.lang.String)
59 */
60 public void addColumn(String name, String className) {
61 this.columnClassNames.add(className);
62 this.columnNames.add(name);
63 }
64
65 }

http://dive4elements.wald.intevation.org