|
||||||||||
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.InsertRequest
Represents a request for an insert operation. Does some type checking by making sure that all features added have the same schema names (which is also the type name). TODO: add increased typechecking, make sure schemas match one another.
Field Summary | |
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 | |
InsertRequest()
Empty constructor. |
Method Summary | |
void |
addFeature(org.geotools.feature.Feature feature)
Adds a feature to this insert request. |
void |
addFeatures(org.geotools.feature.Feature[] features)
Convenience method to add an array of features. |
boolean |
equals(java.lang.Object obj)
Override of equals. |
org.geotools.feature.FeatureCollection |
getFeatures()
Returns the features contained in this request. |
short |
getOpType()
Returns the insert short. |
boolean |
getReleaseAll()
Gets whether all locked features should be released after this transaction, or only those that were affected. |
java.lang.String |
getTypeName()
Returns the type name of the features held in this request. |
void |
setFilter(org.geotools.filter.Filter filter)
Filters can not be added to an insert 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. |
java.lang.String |
toString()
Gets the string representation of this request. |
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
Constructor Detail |
public InsertRequest()
Method Detail |
public boolean getReleaseAll()
public void setReleaseAll(boolean releaseAll)
releaseAll
- whether all locked features should be released.public void addFeature(org.geotools.feature.Feature feature) throws WfsException
feature
- To be inserted into the database.
WfsException
- if added typeName does not match the set typeNames.public void addFeatures(org.geotools.feature.Feature[] features) throws WfsException
features
- array of features to be inserted.
WfsException
- if the typeNames don't match.public java.lang.String getTypeName()
getTypeName
in class SubTransactionRequest
public void setTypeName(java.lang.String typeName)
setTypeName
in class SubTransactionRequest
typeName
- the name of the schema of the added features.public org.geotools.feature.FeatureCollection getFeatures()
public void setFilter(org.geotools.filter.Filter filter) throws WfsException
setFilter
in class SubTransactionRequest
filter
- a filter.
WfsException
- if called at all.public short getOpType()
getOpType
in class SubTransactionRequest
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
obj
- the object to test for equality.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |