tim@132: package de.intevation.gnv.geobackend.base; tim@132: tim@141: import java.io.Serializable; sascha@886: 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 tim@132: * @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@132: * Adds an new Coumnvalue to the Result. tim@132: * @param columnName the Name of the Column tim@132: * @param value the Value of the Column tim@132: */ tim@271: public void addColumnValue(int column, Object value); tim@132: }