view geo-backend/src/main/java/de/intevation/gnv/geobackend/base/ResultDescriptor.java @ 271:8aad9d098b08

Integrated Patch of issue57 to get some Memoryusage-improvements geo-backend/trunk@248 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 20 Oct 2009 09:57:52 +0000
parents b02310d7ffee
children 12f88239fb33
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);

    public int [] getColumnIndices(String [] columnNames);

    public int getColumnIndex(String columnName);
}

http://dive4elements.wald.intevation.org