001 // $HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/ogcwebservices/wcs/configuration/OracleGeoRasterResolution.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.ogcwebservices.wcs.configuration;
037
038 import org.deegree.io.JDBCConnection;
039
040 /**
041 * models a <tt>Resolution<tT> by describing the assigned coverages through
042 * a Oracle 10g Georaster
043 *
044 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a>
045 * @author last edited by: $Author: mschneider $
046 *
047 * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
048 */
049
050 public class OracleGeoRasterResolution extends AbstractResolution {
051
052 private JDBCConnection jdbc = null;
053
054 private String table = null;
055
056 private String rdtTable = null;
057
058 private String column = null;
059
060 private String identification = null;
061
062 private int level = 1;
063
064 /**
065 * @param minScale
066 * @param maxScale
067 * @param ranges
068 * @param jdbc
069 * descrition of the database connection
070 * @param table
071 * @param rdtTable
072 * @param column
073 * @param identification
074 * @param level
075 * @throws IllegalArgumentException
076 */
077 public OracleGeoRasterResolution( double minScale, double maxScale, Range[] ranges, JDBCConnection jdbc,
078 String table, String rdtTable, String column, String identification, int level )
079 throws IllegalArgumentException {
080 super( minScale, maxScale, ranges );
081 this.jdbc = jdbc;
082 this.table = table;
083 this.column = column;
084 this.rdtTable = rdtTable;
085 this.identification = identification;
086 this.level = level;
087
088 }
089
090 /**
091 * @return Returns the shape.
092 */
093 public JDBCConnection getJDBCConnection() {
094 return jdbc;
095 }
096
097 /**
098 * @param jdbc
099 */
100 public void setJDBCConnection( JDBCConnection jdbc ) {
101 this.jdbc = jdbc;
102 }
103
104 /**
105 * returns the name of the table storeing the raster data
106 *
107 * @return the name of the table storeing the raster data
108 */
109 public String getTable() {
110 return table;
111 }
112
113 /**
114 * @see #getTable()
115 * @param table
116 */
117 public void setTable( String table ) {
118 this.table = table;
119 }
120
121 /**
122 * returns the name of the assigned GeoRaster column of the table
123 *
124 * @return the name of the assigned GeoRaster column of the table
125 */
126 public String getColumn() {
127 return column;
128 }
129
130 /**
131 * @see #getColumn()
132 * @param column
133 */
134 public void setColumn( String column ) {
135 this.column = column;
136 }
137
138 /**
139 * returns a SQL where condition to identify the table row/raster instance to access
140 *
141 * @return a SQL where condition to identify the table row/raster instance to access
142 */
143 public String getIdentification() {
144 return identification;
145 }
146
147 /**
148 * @see #getIdentification()
149 * @param identification
150 */
151 public void setIdentification( String identification ) {
152 this.identification = identification;
153 }
154
155 /**
156 * returns the name of the RDT Table assigned to the GetRaster column
157 *
158 * @return the name of the RDT Table assigned to the GetRaster column
159 */
160 public String getRdtTable() {
161 return rdtTable;
162 }
163
164 /**
165 * @see #getRdtTable()
166 * @param rdtTable
167 */
168 public void setRdtTable( String rdtTable ) {
169 this.rdtTable = rdtTable;
170 }
171
172 /**
173 * returns the raster level assigned to a resolution instance
174 *
175 * @return the raster level assigned to a resolution instance
176 */
177 public int getLevel() {
178 return level;
179 }
180
181 /**
182 * @see #getLevel()
183 * @param level
184 */
185 public void setLevel( int level ) {
186 this.level = level;
187 }
188
189 /**
190 * (non-Javadoc)
191 *
192 * @see java.lang.Object#toString()
193 */
194 @Override
195 public String toString() {
196 StringBuffer sb = new StringBuffer( 500 );
197 sb.append( getClass().getName() ).append( ":\n" );
198 sb.append( "JDBCConnection: " ).append( jdbc ).append( "\n" );
199 sb.append( "table: " ).append( table ).append( "\n" );
200 sb.append( "rdttable: " ).append( rdtTable ).append( "\n" );
201 sb.append( "column: " ).append( column ).append( "\n" );
202 sb.append( "identification: " ).append( identification ).append( "\n" );
203 sb.append( "level: " ).append( level );
204 return sb.toString();
205 }
206
207 }