org.deegree.feature.persistence.sql
Class FeatureTypeMapping

java.lang.Object
  extended by org.deegree.feature.persistence.sql.FeatureTypeMapping

public class FeatureTypeMapping
extends Object

Defines the mapping between a FeatureType and tables in a relational database.

Version:
$Revision: 30402 $, $Date: 2011-04-08 17:37:44 +0200 (Fri, 08 Apr 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
FeatureTypeMapping(QName ftName, QTableName table, FIDMapping fidMapping, List<Mapping> particleMappings)
          Creates a new FeatureTypeMapping instance.
 
Method Summary
 QName getFeatureType()
          Returns the name of the feature type.
 FIDMapping getFidMapping()
          Returns the feature id mapping.
 QTableName getFtTable()
          Returns the identifier of the table that the feature type is mapped to.
 Mapping getMapping(QName propName)
          Deprecated. 
 List<Mapping> getMappings()
          Returns the Mapping particles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTypeMapping

public FeatureTypeMapping(QName ftName,
                          QTableName table,
                          FIDMapping fidMapping,
                          List<Mapping> particleMappings)
Creates a new FeatureTypeMapping instance.

Parameters:
ftName - name of the mapped feature type, must not be null
table - name of the database table that the feature type is mapped to, must not be null
fidMapping - mapping for the feature id, must not be null
particleMappings - particle mappings for the feature type, must not be null
Method Detail

getFeatureType

public QName getFeatureType()
Returns the name of the feature type.

Returns:
name of the feature type, never null

getFtTable

public QTableName getFtTable()
Returns the identifier of the table that the feature type is mapped to.

Returns:
identifier of the table, never null

getFidMapping

public FIDMapping getFidMapping()
Returns the feature id mapping.

Returns:
mapping for the feature id, never null

getMapping

@Deprecated
public Mapping getMapping(QName propName)
Deprecated. 

Returns the mapping parameters for the specified property.

Parameters:
propName - name of the property, must not be null
Returns:
mapping, may be null (if the property is not mapped)

getMappings

public List<Mapping> getMappings()
Returns the Mapping particles.

Returns:
mapping particles, may be empty, but never null


Copyright © 2011. All Rights Reserved.