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

Added license headers and license file. geo-backend/trunk@1261 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 02 Nov 2010 17:52:22 +0000
parents b757def3ff55
children
line wrap: on
line source
/*
 * Copyright (c) 2010 by Intevation GmbH
 *
 * This program is free software under the LGPL (>=v2.1)
 * Read the file LGPL.txt coming with the software for details
 * or visit http://www.gnu.org/licenses/ if it does not exist.
 */

package de.intevation.gnv.geobackend.base;

import java.io.Serializable;

/**
 * Interface which provides the Methods for Accessing
 * the MetaData of an ResultEntry
 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
 */
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);

    /**
     * Returns the Indices of the Columns which are specified in the
     * param columnNames.
     * @param columnNames the Name of the Columns for which the Indices should returned.
     * @return the Indices of the Columns which are specified in the
     * param columnNames.
     */
    public int [] getColumnIndices(String [] columnNames);

    /**
     * Returns the index of the given columnName
     * @param columnName the Name of the Index which should be looked up.
     * @return the index of the given columnName
     */
    public int getColumnIndex(String columnName);
}

http://dive4elements.wald.intevation.org