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