deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.feature.persistence.postgis
Class PostGISApplicationSchema

java.lang.Object
  extended by org.deegree.feature.persistence.postgis.PostGISApplicationSchema

public class PostGISApplicationSchema
extends Object

Encapsulates an ApplicationSchema and mapping information that map the feature types to a relational schema stored in a PostGIS database.

Version:
$Revision: 22044 $, $Date: 2010-01-20 16:24:32 +0100 (Mi, 20 Jan 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
ApplicationSchema, FeatureTypeMapping

Constructor Summary
PostGISApplicationSchema(ApplicationSchema appSchema, GlobalMappingHints globalHints, Map<QName,FeatureTypeMapping> ftNamesToHints)
           
 
Method Summary
 Map<QName,FeatureTypeMapping> getFtMapping()
           
 FeatureTypeMapping getFtMapping(QName ftName)
          Returns the mapping hints for the specified feature type.
 GlobalMappingHints getGlobalHints()
          Returns the global mapping hints that apply to all feature types of the schema.
 ApplicationSchema getSchema()
          Returns the application schema.
 void writeCreateScript(String dbSchema, PrintWriter writer)
          Prints out an SQL create script for the relational schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostGISApplicationSchema

public PostGISApplicationSchema(ApplicationSchema appSchema,
                                GlobalMappingHints globalHints,
                                Map<QName,FeatureTypeMapping> ftNamesToHints)
Parameters:
appSchema -
globalHints -
ftNamesToHints -
Method Detail

getSchema

public ApplicationSchema getSchema()
Returns the application schema.

Returns:
the application schema

getGlobalHints

public GlobalMappingHints getGlobalHints()
Returns the global mapping hints that apply to all feature types of the schema.

Returns:
the global mapping hints

getFtMapping

public Map<QName,FeatureTypeMapping> getFtMapping()

getFtMapping

public FeatureTypeMapping getFtMapping(QName ftName)
Returns the mapping hints for the specified feature type.

Parameters:
ftName - name of the feature type, must not be null
Returns:
the mapping hints for the specified feature type or null if the feature type does not exist in the schema

writeCreateScript

public void writeCreateScript(String dbSchema,
                              PrintWriter writer)
Prints out an SQL create script for the relational schema.

Parameters:
dbSchema - optional db schema, can be null
writer -

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>