ingo@1127: /* ingo@1127: * Copyright (c) 2010 by Intevation GmbH ingo@1127: * ingo@1127: * This program is free software under the LGPL (>=v2.1) ingo@1127: * Read the file LGPL.txt coming with the software for details ingo@1127: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1127: */ ingo@1127: tim@132: package de.intevation.gnv.geobackend.base; tim@132: tim@141: import java.io.Serializable; tim@132: import java.util.Date; tim@132: tim@132: /** tim@132: * Interface which provides the Methods for Accessing tim@132: * the Data of an ResultEntry sascha@887: * @author Tim Englich tim@132: * tim@132: */ tim@141: public interface Result extends Serializable{ tim@884: tim@132: /** tim@132: * Returns the ResultDescriptor which provides the tim@132: * ResultMetadatse tim@132: * @return the ResultDescriptor tim@132: */ tim@132: public ResultDescriptor getResultDescriptor(); tim@884: tim@132: /** tim@132: * Returns the Columnvalue as a String tim@132: * @param columnName the Name of the column tim@132: * @return the Columnvalue as a String tim@132: */ tim@132: public String getString(String columnName); tim@271: tim@884: /** tim@884: * Returns the Columnvalue as a String tim@884: * @param column the Position of the Column that should be returned. tim@884: * @return the Columnvalue as a String tim@884: */ tim@884: public String getString(int column); tim@271: tim@132: /** tim@132: * Returns the Columnvalue as a Date tim@132: * @param columnName the Name of the column tim@132: * @return the Columnvalue as a Date tim@132: */ tim@132: public Date getDate(String columnName); tim@271: tim@884: /** tim@884: * Returns the Columnvalue as a Date tim@884: * @param column the Position of the Column that should be returned. tim@884: * @return the Columnvalue as a Date tim@884: */ tim@271: public Date getDate(int column); tim@884: tim@132: /** tim@132: * Returns the Columnvalue as a Integer tim@132: * @param columnName the Name of the column tim@132: * @return the Columnvalue as a Integer tim@132: */ tim@132: public Integer getInteger(String columnName); tim@132: tim@884: /** tim@884: * Returns the Columnvalue as a Integer tim@884: * @param column the Position of the Column that should be returned. tim@884: * @return the Columnvalue as a Integer tim@884: */ tim@271: public Integer getInteger(int column); tim@271: tim@132: /** tim@132: * Returns the Columnvalue as a Float tim@132: * @param columnName the Name of the column tim@132: * @return the Columnvalue as a Float tim@132: */ tim@132: public Float getFloat(String columnName); tim@271: tim@884: /** tim@884: * Returns the Columnvalue as a Float tim@884: * @param column the Position of the Column that should be returned. tim@884: * @return the Columnvalue as a Float tim@884: */ tim@271: public Float getFloat(int column); tim@884: tim@132: /** tim@132: * Returns the Columnvalue as a Double tim@132: * @param columnName the Name of the column tim@132: * @return the Columnvalue as a Double tim@132: */ tim@132: public Double getDouble(String columnName); tim@271: tim@884: /** tim@884: * Returns the Columnvalue as a Double tim@884: * @param column the Position of the Column that should be returned. tim@884: * @return the Columnvalue as a Double tim@884: */ tim@271: public Double getDouble(int column); tim@884: tim@132: /** tim@132: * Returns the Columnvalue as a Object tim@132: * @param columnName the Name of the column tim@132: * @return the Columnvalue as a Object tim@132: */ tim@132: public Object getObject(String columnName); tim@271: tim@884: /** tim@884: * Returns the Columnvalue as a Object tim@884: * @param column the Position of the Column that should be returned. tim@884: * @return the Columnvalue as a Object tim@884: */ tim@271: public Object getObject(int column); tim@884: tim@132: /** tim@889: * Adds an new Columnvalue to the Result. tim@890: * @param column the Position where the column should be inserted. tim@132: * @param value the Value of the Column tim@132: */ tim@271: public void addColumnValue(int column, Object value); tim@132: }