deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.wms.configuration
Class DatabaseDataSource

java.lang.Object
  extended by org.deegree.ogcwebservices.wms.configuration.AbstractDataSource
      extended by org.deegree.ogcwebservices.wms.configuration.DatabaseDataSource

public class DatabaseDataSource
extends AbstractDataSource

Version:
$Revision: 6251 $, $Date: 2007-03-19 16:59:28 +0100 (Mo, 19 Mrz 2007) $
Author:
Andreas Poth, last edited by: $Author: poth $

Field Summary
 
Fields inherited from class org.deegree.ogcwebservices.wms.configuration.AbstractDataSource
DATABASE, EXTERNALDATAACCESS, LOCALWCS, LOCALWFS, ows, REMOTEWCS, REMOTEWFS, REMOTEWMS
 
Constructor Summary
DatabaseDataSource(boolean queryable, boolean failOnException, QualifiedName name, ScaleHint scaleHint, Geometry validArea, int reqTimeLimit, JDBCConnection jdbc, java.lang.String sqlTemplate, java.lang.String geomeryField, CoordinateSystem nativeCRS)
           
DatabaseDataSource(boolean queryable, boolean failOnException, QualifiedName name, ScaleHint scaleHint, Geometry validArea, int reqTimeLimit, JDBCConnection jdbc, java.lang.String sqlTemplate, java.lang.String geometryField, CoordinateSystem nativeCRS, boolean customSQL)
           
DatabaseDataSource(boolean queryable, boolean failOnException, QualifiedName name, ScaleHint scaleHint, Geometry validArea, int reqTimeLimit, JDBCConnection jdbc, java.lang.String sqlTemplate, java.lang.String geomeryField, CoordinateSystem nativeCRS, boolean customSQL, java.util.Map<java.lang.String,java.lang.String> dimProps)
           
 
Method Summary
 java.lang.String getGeometryFieldName()
           
 JDBCConnection getJDBCConnection()
           
 CoordinateSystem getNativeCRS()
           
 OGCWebService getOGCWebService()
           
 java.lang.String getSqlTemplate()
           
 boolean isCustomSQLAllowed()
           
 
Methods inherited from class org.deegree.ogcwebservices.wms.configuration.AbstractDataSource
getCapabilitiesURL, getDimProps, getFeatureInfoTransform, getFeatureInfoURL, getName, getRequestTimeLimit, getScaleHint, getType, getValidArea, isFailOnException, isQueryable, setFeatureInfoURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseDataSource

public DatabaseDataSource(boolean queryable,
                          boolean failOnException,
                          QualifiedName name,
                          ScaleHint scaleHint,
                          Geometry validArea,
                          int reqTimeLimit,
                          JDBCConnection jdbc,
                          java.lang.String sqlTemplate,
                          java.lang.String geomeryField,
                          CoordinateSystem nativeCRS)
Parameters:
queryable -
failOnException -
name -
scaleHint -
validArea -
reqTimeLimit -
jdbc -
sqlTemplate -
geomeryField -
nativeCRS -

DatabaseDataSource

public DatabaseDataSource(boolean queryable,
                          boolean failOnException,
                          QualifiedName name,
                          ScaleHint scaleHint,
                          Geometry validArea,
                          int reqTimeLimit,
                          JDBCConnection jdbc,
                          java.lang.String sqlTemplate,
                          java.lang.String geometryField,
                          CoordinateSystem nativeCRS,
                          boolean customSQL)
Parameters:
queryable -
failOnException -
name -
scaleHint -
validArea -
reqTimeLimit -
jdbc -
sqlTemplate -
geometryField -
nativeCRS -
customSQL -

DatabaseDataSource

public DatabaseDataSource(boolean queryable,
                          boolean failOnException,
                          QualifiedName name,
                          ScaleHint scaleHint,
                          Geometry validArea,
                          int reqTimeLimit,
                          JDBCConnection jdbc,
                          java.lang.String sqlTemplate,
                          java.lang.String geomeryField,
                          CoordinateSystem nativeCRS,
                          boolean customSQL,
                          java.util.Map<java.lang.String,java.lang.String> dimProps)
Parameters:
queryable -
failOnException -
name -
scaleHint -
validArea -
reqTimeLimit -
jdbc -
sqlTemplate -
geomeryField -
nativeCRS -
customSQL -
dimProps -
Method Detail

getOGCWebService

public OGCWebService getOGCWebService()
                               throws OGCWebServiceException
Specified by:
getOGCWebService in class AbstractDataSource
Returns:
an instance of the OGCWebService that represents the datasource. Notice: if more than one layer uses data that are offered by the same OWS the deegree WMS shall just use one instance for accessing the OWS
Throws:
OGCWebServiceException

getJDBCConnection

public JDBCConnection getJDBCConnection()
Returns:
database connection description

getGeometryFieldName

public java.lang.String getGeometryFieldName()
Returns:
the geomeryField

getSqlTemplate

public java.lang.String getSqlTemplate()
Returns:
the sqlTemplate

getNativeCRS

public CoordinateSystem getNativeCRS()
Returns:
the nativeCRS

isCustomSQLAllowed

public boolean isCustomSQLAllowed()
Returns:
true, if sending custom SQL templates is allowed

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org