org.deegree.feature.persistence.sql.insert
Class InsertRowManager

java.lang.Object
  extended by org.deegree.feature.persistence.sql.insert.InsertRowManager

public class InsertRowManager
extends Object

Performs inserts in courtesy of the SQLFeatureStoreTransaction.

The strategy aims for:

TODO strategy for cyclic foreign keys (at least detection)

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
InsertRowManager(SQLFeatureStore fs, Connection conn)
           
 
Method Summary
 InsertFID insertFeature(Feature feature, FeatureTypeMapping ftMapping, IDGenMode mode)
          Inserts the specified feature (relational mode).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertRowManager

public InsertRowManager(SQLFeatureStore fs,
                        Connection conn)
Method Detail

insertFeature

public InsertFID insertFeature(Feature feature,
                               FeatureTypeMapping ftMapping,
                               IDGenMode mode)
                        throws SQLException,
                               FeatureStoreException,
                               FilterEvaluationException
Inserts the specified feature (relational mode).

Parameters:
f - feature instance to be inserted, must not be null
ftMapping - mapping of the corresponding feature type, must not be null
idGenMode - feature id generation mode, must not be null
Returns:
id of the stored feature, never null
Throws:
SQLException
FeatureStoreException
FilterEvaluationException


Copyright © 2011. All Rights Reserved.