deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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: 20612 $, $Date: 2009-11-05 18:53:29 +0100 (Do, 05 Nov 2009) $
Author:
Markus Schneider , last edited by: $Author: mschneider $
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, FeatureStoreTransaction.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.
 FeatureStoreTransaction.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,
              FeatureStoreTransaction.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 FeatureStoreTransaction.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

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>