view geo-backend/src/main/java/de/intevation/gnv/geobackend/base/Result.java @ 384:da2da7bb1aa1

Fixed a bug in DefaultResult when querying an index out of bounds. geo-backend/trunk@445 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 17 Dec 2009 11:14:45 +0000
parents 8aad9d098b08
children 12f88239fb33
line wrap: on
line source
/**
 *
 */
package de.intevation.gnv.geobackend.base;

import java.io.Serializable;
import java.util.Date;


/**
 * Interface which provides the Methods for Accessing
 * the Data of an ResultEntry
 * @author Tim Englich <tim.englich@intevation.de>
 *
 */
public interface Result extends Serializable{
  
    /**
     * Returns the ResultDescriptor which provides the
     * ResultMetadatse
     * @return the ResultDescriptor
     */
    public ResultDescriptor getResultDescriptor();
    
    /**
     * Returns the Columnvalue as a String
     * @param columnName the Name of the column
     * @return the Columnvalue as a String
     */
    public String getString(String columnName);


    public String getString(int column);
    
    /**
     * Returns the Columnvalue as a Date
     * @param columnName the Name of the column
     * @return the Columnvalue as a Date
     */
    public Date getDate(String columnName);

    public Date getDate(int column);
    
    /**
     * Returns the Columnvalue as a Integer
     * @param columnName the Name of the column
     * @return the Columnvalue as a Integer
     */
    public Integer getInteger(String columnName);

    public Integer getInteger(int column);

    /**
     * Returns the Columnvalue as a Float
     * @param columnName the Name of the column
     * @return the Columnvalue as a Float
     */
    public Float getFloat(String columnName);

    public Float getFloat(int column);
    
    /**
     * Returns the Columnvalue as a Double
     * @param columnName the Name of the column
     * @return the Columnvalue as a Double
     */
    public Double getDouble(String columnName);

    public Double getDouble(int column);
    
    /**
     * Returns the Columnvalue as a Object
     * @param columnName the Name of the column
     * @return the Columnvalue as a Object
     */
    public Object getObject(String columnName);

    public Object getObject(int column);
    
    /**
     * Adds an new Coumnvalue to the Result.
     * @param columnName the Name of the Column
     * @param value the Value of the Column
     */
    public void addColumnValue(int column, Object value);
}

http://dive4elements.wald.intevation.org