view geo-backend/src/main/java/de/intevation/gnv/geobackend/base/ResultDescriptor.java @ 141:b02310d7ffee

Make Classes Serializable for Storing in ArtifactDatabase geo-backend/trunk@131 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Thu, 24 Sep 2009 15:24:11 +0000
parents 5a583cff97ea
children 8aad9d098b08
line wrap: on
line source
/**
 *
 */
package de.intevation.gnv.geobackend.base;

import java.io.Serializable;

/**
 * Interface which provides the Methods for Accessing
 * the MetaData of an ResultEntry
 * @author Tim Englich <tim.englich@intevation.de>
 */
public interface ResultDescriptor extends Serializable{

    /**
     * Returns the Classname of the Column
     * @param column the id of the Column which is requested
     * @return the Classname of the Column
     */
    public String getColumnClassName(int column);
    
    /**
     * Returns the Number of Columns
     * @return the Number of Columns
     */
    public int getColumnCount();
    
    /**
     * Returns the Name of the Column which belongs to the given Columnindex
     * @param column the Index of the Column
     * @return the Name of the Column
     */
    public String getColumnName(int column);
    
    /**
     * Adds a new ColumnDescription into the Descriptor
     * @param name the Name of the Column (unique)
     * @param className the Name of the Class (e.g. Double, Integer
     */
    public void addColumn(String name, String className);
}

http://dive4elements.wald.intevation.org