deegree 2.3 (2010/04/09 10:10 build-4-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, String sqlTemplate, String geomeryField, CoordinateSystem nativeCRS)
           
DatabaseDataSource(boolean queryable, boolean failOnException, QualifiedName name, ScaleHint scaleHint, Geometry validArea, int reqTimeLimit, JDBCConnection jdbc, String sqlTemplate, String geometryField, CoordinateSystem nativeCRS, boolean customSQL)
           
DatabaseDataSource(boolean queryable, boolean failOnException, QualifiedName name, ScaleHint scaleHint, Geometry validArea, int reqTimeLimit, JDBCConnection jdbc, String sqlTemplate, String geomeryField, CoordinateSystem nativeCRS, boolean customSQL, Map<String,String> dimProps)
           
 
Method Summary
 String getGeometryFieldName()
           
 JDBCConnection getJDBCConnection()
           
 CoordinateSystem getNativeCRS()
           
 OGCWebService getOGCWebService()
           
 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,
                          String sqlTemplate,
                          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,
                          String sqlTemplate,
                          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,
                          String sqlTemplate,
                          String geomeryField,
                          CoordinateSystem nativeCRS,
                          boolean customSQL,
                          Map<String,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 String getGeometryFieldName()
Returns:
the geomeryField

getSqlTemplate

public 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.3 (2010/04/09 10:10 build-4-official)

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