tim@132: /** tim@132: * tim@132: */ tim@132: package de.intevation.gnv.geobackend.base; tim@132: tim@132: import java.util.Date; tim@132: 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@132: public interface Result { tim@132: 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@132: 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@132: 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@132: 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@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@132: 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@132: 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@132: 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@132: public void addColumnValue(String columnName, Object value); tim@132: }