org.deegree.protocol.wfs.transaction
Class Update

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

public class Update
extends TransactionOperation

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

Version:
$Revision: 23152 $, $Date: 2010-03-18 11:20:56 +0100 (Thu, 18 Mar 2010) $
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
Update(String handle, Version version, QName ftName, String inputFormat, String srsName, XMLStreamReader xmlStream)
          Creates a new Update instance for a stream-based access strategy.
 
Method Summary
 Filter getFilter()
          Returns the filter that selects the feature instances to be updated.
 String getInputFormat()
          Returns the format of the encoded property values.
 Iterator<PropertyReplacement> getReplacementProps()
           
 String getSRSName()
          Returns the specified coordinate reference system for geometries to be updated.
 TransactionOperation.Type getType()
          Always returns TransactionOperation.Type.UPDATE.
 QName getTypeName()
          Returns the name of the targeted feature type.
 
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

Update

public Update(String handle,
              Version version,
              QName ftName,
              String inputFormat,
              String srsName,
              XMLStreamReader xmlStream)
Creates a new Update instance for a stream-based access strategy.

Parameters:
handle - identifier for the operation, may be null
version - protocol version, must not be null
ftName - name of the targeted feature type, must not be null
inputFormat - the format of encoded property values, may be null (unspecified)
srsName - the coordinate references system used for the geometries, may be null (unspecified)
xmlStream - provides access to the XML encoded replacement properties and the filter, must point at the START_ELEMENT event of the first "wfs:Property"
Method Detail

getType

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

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

getTypeName

public QName getTypeName()
Returns the name of the targeted feature type.

Returns:
the name of the targeted feature type, never null

getInputFormat

public String getInputFormat()
Returns the format of the encoded property values.

Returns:
the format of the encoded property values, may be null (unspecified)

getSRSName

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

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

getReplacementProps

public Iterator<PropertyReplacement> getReplacementProps()

getFilter

public Filter getFilter()
                 throws XMLStreamException
Returns the filter that selects the feature instances to be updated.

NOTE: Due to streaming acccess strategy, there are some rules for using this method:

Returns:
Filter that selects the feature instances to be updated, can be null
Throws:
XMLStreamException


Copyright © 2011. All Rights Reserved.