org.deegree.metadata.iso.persistence
Class ISOPropertyNameMapper

java.lang.Object
  extended by org.deegree.metadata.iso.persistence.ISOPropertyNameMapper
All Implemented Interfaces:
PropertyNameMapper

public class ISOPropertyNameMapper
extends Object
implements PropertyNameMapper

Implementation of the PropertyNameMapper. It's the base class for access to the backend. Is there any change in the database schema for the ISOMetadataStore then in this class should be changed the binding, as well.

TODO denominator, distanceUOM, distanceValue put a type in

Version:
$Revision: 31272 $, $Date: 2011-07-13 23:10:35 +0200 (Mi, 13. Jul 2011) $
Author:
Steffen Thomas, last edited by: $Author: mschneider $

Nested Class Summary
static class ISOPropertyNameMapper.CommonColumnNames
          The common column names that are used in the backend for each databasetable.
static class ISOPropertyNameMapper.DatabaseTables
          The names of the databasetables that are used in the backend.
 
Field Summary
static String RECORD
          XML element name in the representation of the response
 
Constructor Summary
ISOPropertyNameMapper(ConnectionManager.Type connectionType, boolean useLegacyPredicates)
           
 
Method Summary
 PropertyNameMapping getMapping(ValueReference propName, TableAliasManager aliasManager)
          Returns the PropertyNameMapping for the given ValueReference.
 Map<QName,Triple<Pair<String,String>,Boolean,BaseType>> getPropToTableAndCol()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECORD

public static final String RECORD
XML element name in the representation of the response

See Also:
Constant Field Values
Constructor Detail

ISOPropertyNameMapper

public ISOPropertyNameMapper(ConnectionManager.Type connectionType,
                             boolean useLegacyPredicates)
Method Detail

getMapping

public PropertyNameMapping getMapping(ValueReference propName,
                                      TableAliasManager aliasManager)
                               throws FilterEvaluationException
Description copied from interface: PropertyNameMapper
Returns the PropertyNameMapping for the given ValueReference.

Specified by:
getMapping in interface PropertyNameMapper
Parameters:
propName - property name, can be null (indicates that the default geometry property of the root object is requested)
aliasManager - manager for creating and tracking table aliases, never null
Returns:
relational mapping, may be null (if no mapping is possible)
Throws:
FilterEvaluationException - indicates that the ValueReference is invalid

getPropToTableAndCol

public Map<QName,Triple<Pair<String,String>,Boolean,BaseType>> getPropToTableAndCol()
Returns:
a map⟨QName, PropertyNameMapping⟩ can not be null


Copyright © 2011. All Rights Reserved.