ingo@1127: /* ingo@1127: * Copyright (c) 2010 by Intevation GmbH ingo@1127: * ingo@1127: * This program is free software under the LGPL (>=v2.1) ingo@1127: * Read the file LGPL.txt coming with the software for details ingo@1127: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1127: */ ingo@1127: sascha@894: package de.intevation.gnv.geobackend.sde.datasources; sascha@894: sascha@894: import org.apache.log4j.Logger; sascha@894: sascha@894: /** sascha@894: * The class ResultSet fulfills the following purposes: sascha@894: *
    sascha@894: *
  1. Providing an abstract object for dealing with result sets.
  2. sascha@894: *
sascha@894: * sascha@894: * @author blume sascha@894: * @author Tim Englich sascha@894: */ sascha@894: public abstract class ResultSet implements java.sql.ResultSet { sascha@894: sascha@894: /** sascha@894: * Default Logging instance sascha@894: */ sascha@894: private static Logger sLogger = Logger.getLogger(ResultSet.class); sascha@894: sascha@894: /** sascha@894: * Returns the number of hits. sascha@894: * @return count of results. sascha@894: */ sascha@894: public abstract int getCount(); sascha@894: sascha@894: /** sascha@894: * Returns the number of columns returned through the query. sascha@894: * @return the number of columns. sascha@894: */ sascha@894: public abstract int getNumberOfColumns(); sascha@894: sascha@894: /** sascha@894: * A ResultSet can tell about the concrete definition of each column. sascha@894: * This method returns an array of ColDefinition-Objects. sascha@894: * @return the definitions describing the result set. sascha@894: */ sascha@894: public abstract ColDefinition[] getColumnDefinitions(); sascha@894: sascha@894: /** sascha@894: * Returns an array of Rows. The rows contain the "content" of the current ResultSet. sascha@894: * sascha@894: * @return the results itself. sascha@894: */ sascha@894: public abstract Row[] getResults(); sascha@894: sascha@894: }