org.deegree.metadata.persistence.iso
Class PostGISMappingsISODC

java.lang.Object
  extended by org.deegree.metadata.persistence.iso.PostGISMappingsISODC
All Implemented Interfaces:
PostGISMapping

public class PostGISMappingsISODC
extends java.lang.Object
implements PostGISMapping

Implementation of the PostGISMapping. 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 boundingbox, crs and association, denominator, distanceUOM, distanceValue put a type in

Version:
$Revision: 27994 $, $Date: 2010-11-10 20:01:08 +0100 (Mi, 10. Nov 2010) $
Author:
Steffen Thomas, last edited by: $Author: sthomas $

Nested Class Summary
static class PostGISMappingsISODC.CommonColumnNames
          The common column names that are used in the backend for each databasetable.
static class PostGISMappingsISODC.DatabaseTables
          The names of the databasetables that are used in the backend.
 
Field Summary
static java.lang.String BRIEFRECORD
          XML element name in the representation of the response
static java.lang.String RECORD
          XML element name in the representation of the response
static java.lang.String SUMMARYRECORD
          XML element name in the representation of the response
 
Constructor Summary
PostGISMappingsISODC()
           
 
Method Summary
 PropertyNameMapping getMapping(PropertyName propName, TableAliasManager aliasManager)
          Returns the PropertyNameMapping for the given PropertyName.
 byte[] getPostGISValue(Geometry literal, PropertyName propName)
          Returns the WKB for the given Geometry in the CRS that is imposed by the relational mapping of the specified PropertyName.
 java.lang.Object getPostGISValue(Literal literal, PropertyName propName)
          Returns the value object for the given Literal, adapted to the SQL type that is imposed by the relational mapping of the specified PropertyName.
 java.util.Map<javax.xml.namespace.QName,Triple<java.lang.String,java.lang.String,PrimitiveType>> getPropToTableAndCol()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BRIEFRECORD

public static final java.lang.String BRIEFRECORD
XML element name in the representation of the response

See Also:
Constant Field Values

SUMMARYRECORD

public static final java.lang.String SUMMARYRECORD
XML element name in the representation of the response

See Also:
Constant Field Values

RECORD

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

See Also:
Constant Field Values
Constructor Detail

PostGISMappingsISODC

public PostGISMappingsISODC()
Method Detail

getMapping

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

Specified by:
getMapping in interface PostGISMapping
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 - thrown to indicate that the PropertyName is invalid

getPostGISValue

public java.lang.Object getPostGISValue(Literal literal,
                                        PropertyName propName)
                                 throws FilterEvaluationException
Description copied from interface: PostGISMapping
Returns the value object for the given Literal, adapted to the SQL type that is imposed by the relational mapping of the specified PropertyName.

Specified by:
getPostGISValue in interface PostGISMapping
Parameters:
literal - literal to be converted, never null
propName - property name, never null
Returns:
value object for the column in the database, may be null
Throws:
FilterEvaluationException

getPostGISValue

public byte[] getPostGISValue(Geometry literal,
                              PropertyName propName)
                       throws FilterEvaluationException
Description copied from interface: PostGISMapping
Returns the WKB for the given Geometry in the CRS that is imposed by the relational mapping of the specified PropertyName.

Specified by:
getPostGISValue in interface PostGISMapping
Parameters:
literal - literal to be converted, never null
propName - property name, can be null (indicates that the default geometry property of the root object is requested)
Returns:
value object for the column in the database, may be null
Throws:
FilterEvaluationException

getPropToTableAndCol

public java.util.Map<javax.xml.namespace.QName,Triple<java.lang.String,java.lang.String,PrimitiveType>> getPropToTableAndCol()
Returns:
a map⟨QName, PropertyNameMapping⟩ can not be null


Copyright © 2011. All Rights Reserved.