001    //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/io/oraclegeoraster/GeoRasterDescription.java $
002    /*----------------------------------------------------------------------------
003     This file is part of deegree, http://deegree.org/
004     Copyright (C) 2001-2009 by:
005       Department of Geography, University of Bonn
006     and
007       lat/lon GmbH
008    
009     This library is free software; you can redistribute it and/or modify it under
010     the terms of the GNU Lesser General Public License as published by the Free
011     Software Foundation; either version 2.1 of the License, or (at your option)
012     any later version.
013     This library is distributed in the hope that it will be useful, but WITHOUT
014     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
015     FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
016     details.
017     You should have received a copy of the GNU Lesser General Public License
018     along with this library; if not, write to the Free Software Foundation, Inc.,
019     59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020    
021     Contact information:
022    
023     lat/lon GmbH
024     Aennchenstr. 19, 53177 Bonn
025     Germany
026     http://lat-lon.de/
027    
028     Department of Geography, University of Bonn
029     Prof. Dr. Klaus Greve
030     Postfach 1147, 53001 Bonn
031     Germany
032     http://www.geographie.uni-bonn.de/deegree/
033    
034     e-mail: info@deegree.org
035    ----------------------------------------------------------------------------*/
036    package org.deegree.io.oraclegeoraster;
037    
038    import org.deegree.io.JDBCConnection;
039    
040    /**
041     *
042     *
043     *
044     * @version $Revision: 18195 $
045     * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a>
046     * @author last edited by: $Author: mschneider $
047     *
048     * @version 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
049     *
050     * @since 2.0
051     */
052    public class GeoRasterDescription {
053    
054        private JDBCConnection jdbcConnection = null;
055    
056        private String table = null;
057    
058        private String rdtTable = null;
059    
060        private String column = null;
061    
062        private String identification = null;
063    
064        private int level = 0;
065    
066        /**
067         *
068         * @param jdbcConnection
069         * @param table
070         * @param rdtTable
071         * @param column
072         * @param identification
073         */
074        public GeoRasterDescription( JDBCConnection jdbcConnection, String table, String rdtTable, String column,
075                                     String identification, int level ) {
076            super();
077            // TODO Auto-generated constructor stub
078            this.jdbcConnection = jdbcConnection;
079            this.table = table;
080            this.rdtTable = rdtTable;
081            this.column = column;
082            this.identification = identification;
083            this.level = level;
084        }
085    
086        /**
087         * @return name of the georaster column
088         */
089        public String getColumn() {
090            return column;
091        }
092    
093        /**
094         * @return SQL where clause that identifies the target georaster
095         */
096        public String getIdentification() {
097            return identification;
098        }
099    
100        /**
101         * @return JDBC description for accessing the DB
102         */
103        public JDBCConnection getJdbcConnection() {
104            return jdbcConnection;
105        }
106    
107        /**
108         * @return name of the RDT table assigned to a GeoRaster column
109         */
110        public String getRdtTable() {
111            return rdtTable;
112        }
113    
114        /**
115         * @return name of the tab le containing a georaster column to access
116         */
117        public String getTable() {
118            return table;
119        }
120    
121        /**
122         * returns the Oracle tree level of the describe coverage
123         *
124         * @return the Oracle tree level of the describe coverage
125         */
126        public int getLevel() {
127            return level;
128        }
129    
130        public String toString() {
131            String s = "GeoRasterDescription: \n" + "table: " + table + "\n" + "RDTTable: " + rdtTable + "\n" + "column: "
132                       + column + "\n" + "identification: " + identification + "\n" + "JDBC: " + jdbcConnection + "\n";
133            return s;
134        }
135    }