|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.requests.wfs.SubTransactionRequest org.vfny.geoserver.requests.wfs.UpdateRequest
This class represents an update request. An update request consists of one or more properties, which consist of a name and an attribute, and a filter. A property is represented by an inner class called Property, which are added to the property list by calling add Property.
Field Summary | |
protected boolean |
releaseAll
Specifices the user-defined name for the entire get feature request |
protected java.lang.String |
typeName
Specifies the table of features |
Fields inherited from class org.vfny.geoserver.requests.wfs.SubTransactionRequest |
DELETE, handle, INSERT, UPDATE |
Constructor Summary | |
UpdateRequest()
Constructor |
Method Summary | |
void |
addProperty(java.lang.String propertyName,
java.lang.Object value)
adds a property to this update object. |
boolean |
equals(java.lang.Object obj)
|
org.geotools.filter.Filter |
getFilter()
Gets the filter for this request |
short |
getOpType()
Gets the subtransaction type. |
java.lang.String[] |
getPropertyNames()
Gets the list of property names. |
boolean |
getReleaseAll()
Gets whether all locked features should be released after this transaction, or only those that were affected. |
java.lang.String |
getTypeName()
Gets the name of the features to update. |
org.geotools.feature.AttributeType[] |
getTypes(org.geotools.feature.FeatureType schema)
Gets the attribute types that correspond to the names of properties in the passed in schema. |
java.lang.Object[] |
getValues()
Gets the list of property values. |
void |
setFilter(org.geotools.filter.Filter filter)
Sets the filter for this request. |
void |
setReleaseAll(boolean releaseAll)
Sets whether all locked features should be released after this transaction, or only those that were affected. |
void |
setTypeName(java.lang.String typeName)
Sets the name of the features to update. |
java.lang.String |
toString()
|
Methods inherited from class org.vfny.geoserver.requests.wfs.SubTransactionRequest |
getHandle, setHandle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String typeName
protected boolean releaseAll
Constructor Detail |
public UpdateRequest()
Method Detail |
public void addProperty(java.lang.String propertyName, java.lang.Object value)
propertyName
- The name of the attribute that will be changed.value
- The value to be changed.public java.lang.String getTypeName()
getTypeName
in class SubTransactionRequest
public void setTypeName(java.lang.String typeName)
setTypeName
in class SubTransactionRequest
typeName
- The type name of the features for this request.public boolean getReleaseAll()
public void setReleaseAll(boolean releaseAll)
releaseAll
- if all locks should be released.public void setFilter(org.geotools.filter.Filter filter)
setFilter
in class SubTransactionRequest
filter
- The geotools filter to query against.public org.geotools.filter.Filter getFilter()
public java.lang.Object[] getValues()
public java.lang.String[] getPropertyNames()
public org.geotools.feature.AttributeType[] getTypes(org.geotools.feature.FeatureType schema) throws org.geotools.feature.SchemaException
schema
- Queried with property names to find the types.
org.geotools.feature.SchemaException
- if any of the names held by properties of this
request don't match the schema.public short getOpType()
getOpType
in class SubTransactionRequest
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |