org.deegree_impl.services.wfs.configuration
Class DatastoreConfiguration_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wfs.configuration.DatastoreConfiguration_Impl
All Implemented Interfaces:
DatastoreConfiguration

public class DatastoreConfiguration_Impl
extends java.lang.Object
implements DatastoreConfiguration

the toplevel interface describing a deegree wfs datastore

---------------------------------------------------------------------

Version:
$Revision: 1.5 $ $Date: 2004/04/02 06:41:56 $
Author:
Andreas Poth

Field Summary
private  Connection connection
           
private  java.util.HashMap featureTypes
           
private  java.lang.String name
           
private  int type
           
 
Fields inherited from interface org.deegree.services.wfs.configuration.DatastoreConfiguration
BNA, GMLDB, MAPINFO, MYSQL, ORACLESPATIAL, POINTDB, POSTGIS, SDE, SHAPEFILES
 
Constructor Summary
(package private) DatastoreConfiguration_Impl(java.lang.String name, int type, Connection connection, FeatureType[] featureTypes)
          Creates a new DatastoreConfiguration_Impl object.
 
Method Summary
 void addFeatureType(FeatureType featureType)
           
 org.w3c.dom.Document exportAsXML()
          exports the configuration as OGC WFS conform XML document
 Connection getConnection()
          returns an object that describes the connection to a database if datastore type equals ORACLESPATIAL, GMLDB or POINTDB
private static java.lang.String getDataType(int t)
           
 FeatureType getFeatureType(java.lang.String name)
          returns the feature description for a named feature type. if no feature type is known with the submitted name null will be returned
 FeatureType[] getFeatureTypes()
          return describing objects for each feature type that is accessible through a datastore.
 java.lang.String getName()
          returns the name of a datastore
 int getType()
          returns the type of a datastore. at the moment four types are known: ORACLESPATIAL GMLDB POINTDB SHAPEFILES
 void setConnection(Connection connection)
           
 void setFeatureTypes(FeatureType[] featureTypes)
           
 void setName(java.lang.String name)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

private Connection connection

featureTypes

private java.util.HashMap featureTypes

name

private java.lang.String name

type

private int type
Constructor Detail

DatastoreConfiguration_Impl

DatastoreConfiguration_Impl(java.lang.String name,
                            int type,
                            Connection connection,
                            FeatureType[] featureTypes)
Creates a new DatastoreConfiguration_Impl object.

Parameters:
name -
type -
connection -
featureTypes -
Method Detail

getName

public java.lang.String getName()
returns the name of a datastore

Specified by:
getName in interface DatastoreConfiguration

setName

public void setName(java.lang.String name)
See Also:
getName()

getType

public int getType()
returns the type of a datastore. at the moment four types are known:

Specified by:
getType in interface DatastoreConfiguration

setType

public void setType(int type)
See Also:
getType()

getConnection

public Connection getConnection()
returns an object that describes the connection to a database if datastore type equals ORACLESPATIAL, GMLDB or POINTDB

Specified by:
getConnection in interface DatastoreConfiguration

setConnection

public void setConnection(Connection connection)
See Also:
getConnection()

getFeatureTypes

public FeatureType[] getFeatureTypes()
return describing objects for each feature type that is accessible through a datastore.

Specified by:
getFeatureTypes in interface DatastoreConfiguration

getFeatureType

public FeatureType getFeatureType(java.lang.String name)
returns the feature description for a named feature type. if no feature type is known with the submitted name null will be returned

Specified by:
getFeatureType in interface DatastoreConfiguration

setFeatureTypes

public void setFeatureTypes(FeatureType[] featureTypes)
See Also:
getFeatureTypes()

addFeatureType

public void addFeatureType(FeatureType featureType)
See Also:
getFeatureTypes()

exportAsXML

public org.w3c.dom.Document exportAsXML()
exports the configuration as OGC WFS conform XML document


getDataType

private static java.lang.String getDataType(int t)
Parameters:
t -
Returns: