org.deegree.feature.persistence.sql.rules
Class Mapping

java.lang.Object
  extended by org.deegree.feature.persistence.sql.rules.Mapping
Direct Known Subclasses:
CompoundMapping, ConstantMapping, FeatureMapping, GeometryMapping, PrimitiveMapping

public abstract class Mapping
extends Object

A Mapping describes how a particle of a feature type is mapped to a relational model (tables/columns).

The mapping is defined by identifying a relative XPath-expression in the feature model with a column mapping/join rule in the relational model.

Version:
$Revision: 31658 $, $Date: 2011-08-25 20:09:40 +0200 (Thu, 25 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
protected Mapping(ValueReference path, boolean voidable, List<TableJoin> tableChange)
          Creates a new Mapping instance.
 
Method Summary
 List<TableJoin> getJoinedTable()
          Returns the table joins that have to be performed in the relational model to follow the particle path.
 ValueReference getPath()
          Returns a relative XPath-expression that describes the path from the parent particle to the particle(s) that are affected by this rule.
 boolean isVoidable()
          Returns whether the particle can be omitted from the parent particle without violating the schema.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Mapping

protected Mapping(ValueReference path,
                  boolean voidable,
                  List<TableJoin> tableChange)
Creates a new Mapping instance.

Parameters:
path - relative xpath expression, must not be null
voidable - true, if the particle can be omitted from the parent particle (i.e. be null), false otherwise
tableChange - table joins, can be null (no joins involved)
Method Detail

getPath

public ValueReference getPath()
Returns a relative XPath-expression that describes the path from the parent particle to the particle(s) that are affected by this rule.

Returns:
a relative xpath expression, never null

isVoidable

public boolean isVoidable()
Returns whether the particle can be omitted from the parent particle without violating the schema.

Returns:
true, if the particle can be omitted from the parent particle (i.e. be null), false otherwise

getJoinedTable

public List<TableJoin> getJoinedTable()
Returns the table joins that have to be performed in the relational model to follow the particle path.

Returns:
the table joins, can be null (no joins involved)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.