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

java.lang.Object
  extended by org.deegree.feature.persistence.sql.rules.FeatureBuilderRelational
All Implemented Interfaces:
FeatureBuilder

public class FeatureBuilderRelational
extends Object
implements FeatureBuilder

Builds Feature instances from SQL result set rows (relational mode).

Version:
$Revision: 32160 $, $Date: 2011-10-19 00:04:00 +0200 (Wed, 19 Oct 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
FeatureBuilderRelational(SQLFeatureStore fs, FeatureType ft, FeatureTypeMapping ftMapping, Connection conn, String ftTableAlias)
          Creates a new FeatureBuilderRelational instance.
 
Method Summary
 Feature buildFeature(ResultSet rs)
          Builds a Feature instance from the current row of the given ResultSet.
 List<String> getInitialSelectColumns()
          Returns the columns for the SELECT statement that is used to retrieve the ResultSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureBuilderRelational

public FeatureBuilderRelational(SQLFeatureStore fs,
                                FeatureType ft,
                                FeatureTypeMapping ftMapping,
                                Connection conn,
                                String ftTableAlias)
Creates a new FeatureBuilderRelational instance.

Parameters:
fs - feature store, must not be null
ft - feature type, must not be null
ftMapping - feature type mapping, must not be null
conn - JDBC connection (used for performing subsequent SELECTs), must not be null
Method Detail

getInitialSelectColumns

public List<String> getInitialSelectColumns()
Description copied from interface: FeatureBuilder
Returns the columns for the SELECT statement that is used to retrieve the ResultSet.

Specified by:
getInitialSelectColumns in interface FeatureBuilder
Returns:
list of columns, never null

buildFeature

public Feature buildFeature(ResultSet rs)
                     throws SQLException
Description copied from interface: FeatureBuilder
Builds a Feature instance from the current row of the given ResultSet.

Specified by:
buildFeature in interface FeatureBuilder
Parameters:
rs - SQL result set, must not be null
Returns:
created Feature instance, never null
Throws:
SQLException


Copyright © 2011. All Rights Reserved.