org.deegree.protocol.wfs.transaction
Class Insert

java.lang.Object
  extended by org.deegree.protocol.wfs.transaction.TransactionOperation
      extended by org.deegree.protocol.wfs.transaction.Insert

public class Insert
extends TransactionOperation

Represents a WFS Insert operation (part of a Transaction request).

NOTE: Due to the possible size of Insert operations, this...

Version:
$Revision: 29163 $, $Date: 2011-01-11 11:39:42 +0100 (Tue, 11 Jan 2011) $
Author:
Markus Schneider , last edited by: $Author: aschmitz $
See Also:
Transaction

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deegree.protocol.wfs.transaction.TransactionOperation
TransactionOperation.Type
 
Constructor Summary
Insert(String handle, IDGenMode idGenMode, String inputFormat, String srsName, XMLStreamReader encodedFeatures)
          Creates a new Insert instance.
 
Method Summary
 XMLStreamReader getFeatures()
          Returns an XMLStreamReader that provides access to the encoded features to be inserted.
 IDGenMode getIdGen()
          Returns the mode for the generation of feature identifiers.
 String getInputFormat()
          Returns the format of encoded feature instances.
 String getSRSName()
          Returns the specified coordinate system for the geometries to be inserted.
 TransactionOperation.Type getType()
          Always returns TransactionOperation.Type.INSERT.
 
Methods inherited from class org.deegree.protocol.wfs.transaction.TransactionOperation
getHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Insert

public Insert(String handle,
              IDGenMode idGenMode,
              String inputFormat,
              String srsName,
              XMLStreamReader encodedFeatures)
Creates a new Insert instance.

Parameters:
handle - identifier for the operation, can be null
idGenMode - controls how identifiers for newly inserted feature instances are generated, can be null (unspecified)
inputFormat - the format of encoded feature instances, may be null (unspecified)
srsName - the coordinate references system used for the geometries, may be null (unspecified)
encodedFeatures - provides access to the XML encoded features, cursor must point at the START_ELEMENT event of the first Feature to be inserted, must not be null
Method Detail

getType

public TransactionOperation.Type getType()
Always returns TransactionOperation.Type.INSERT.

Specified by:
getType in class TransactionOperation
Returns:
TransactionOperation.Type.INSERT

getIdGen

public IDGenMode getIdGen()
Returns the mode for the generation of feature identifiers.

Returns:
the mode for id generation, can be null (unspecified)

getInputFormat

public String getInputFormat()
Returns the format of encoded feature instances.

Returns:
the format of encoded feature instances, may be null (unspecified)

getSRSName

public String getSRSName()
Returns the specified coordinate system for the geometries to be inserted.

Returns:
the specified coordinate system, can be null (unspecified)

getFeatures

public XMLStreamReader getFeatures()
Returns an XMLStreamReader that provides access to the encoded features to be inserted.

NOTE: The client must read this stream exactly once and exactly up to the next tag event after the closing element of the feature/feature collection, i.e. the END_ELEMENT of the surrounding Insert element.

Returns:
XMLStreamReader that provides access to the XML encoded features, cursor must point at the START_ELEMENT event of the first Feature to be inserted, never null


Copyright © 2011. All Rights Reserved.