001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/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 13:32:57 +0100 (Do, 27 Dez 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, String table, String rdtTable, 083 String column, String identification, int level ) { 084 super(); 085 // TODO Auto-generated constructor stub 086 this.jdbcConnection = jdbcConnection; 087 this.table = table; 088 this.rdtTable = rdtTable; 089 this.column = column; 090 this.identification = identification; 091 this.level = level; 092 } 093 094 /** 095 * @return name of the georaster column 096 */ 097 public String getColumn() { 098 return column; 099 } 100 101 /** 102 * @return SQL where clause that identifies the target georaster 103 */ 104 public String getIdentification() { 105 return identification; 106 } 107 108 /** 109 * @return JDBC description for accessing the DB 110 */ 111 public JDBCConnection getJdbcConnection() { 112 return jdbcConnection; 113 } 114 115 /** 116 * @return name of the RDT table assigned to a GeoRaster column 117 */ 118 public String getRdtTable() { 119 return rdtTable; 120 } 121 122 /** 123 * @return name of the tab le containing a georaster column to access 124 */ 125 public String getTable() { 126 return table; 127 } 128 129 /** 130 * returns the Oracle tree level of the describe coverage 131 * 132 * @return the Oracle tree level of the describe coverage 133 */ 134 public int getLevel() { 135 return level; 136 } 137 138 public String toString() { 139 String s = "GeoRasterDescription: \n" + "table: " + table + "\n" + "RDTTable: " + rdtTable 140 + "\n" + "column: " + column + "\n" + "identification: " + identification + "\n" 141 + "JDBC: " + jdbcConnection + "\n"; 142 return s; 143 } 144 }