|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.requests.Request org.vfny.geoserver.requests.WFSRequest org.vfny.geoserver.requests.wfs.TransactionRequest
Transactional request object, consisting of one or more sub transactional requests.
Field Summary | |
static org.vfny.geoserver.requests.wfs.ReleaseAction |
ALL
Release lockID when the transaction completes. |
protected java.lang.String |
handle
Specifices the user-defined name for the entire transaction request. |
protected java.lang.String |
lockId
Assume null value means no lockID specified |
protected org.vfny.geoserver.requests.wfs.ReleaseAction |
releaseAction
Control how locked features are treated when a transaction is completed. |
static org.vfny.geoserver.requests.wfs.ReleaseAction |
SOME
Release lockID when the transaction completes. |
protected java.util.List |
subRequests
Assume this is a list of SubTransactionRequest |
static java.lang.String |
TRANSACTION_REQUEST_TYPE
|
Fields inherited from class org.vfny.geoserver.requests.WFSRequest |
WFS_SERVICE_TYPE |
Fields inherited from class org.vfny.geoserver.requests.Request |
httpServletRequest, request, service, version |
Constructor Summary | |
TransactionRequest()
Create a WFS Transaction request. |
Method Summary | |
void |
addSubRequest(SubTransactionRequest subRequest)
Adds a delete, insert, or update request to this transaction. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHandle()
Returns the user-defined name for the entire Transaction request. |
java.lang.String |
getLockId()
Returns the lock id for the entire Transaction request. |
org.vfny.geoserver.requests.wfs.ReleaseAction |
getReleaseAction()
Returns the release for the Transaction request. |
SubTransactionRequest |
getSubRequest(int i)
Gets the request held at position i. |
int |
getSubRequestSize()
Gets the number of delete, update, and insert operations |
void |
setHandle(java.lang.String handle)
Sets the user-defined name for the entire Transaction request. |
void |
setLockId(java.lang.String lockId)
Sets the lock id for the entire Transaction request. |
void |
setReleaseAction(boolean releaseAll)
Sets the release for the Transaction request. |
void |
setReleaseAction(java.lang.String releaseAction)
|
java.lang.String |
toString()
|
Methods inherited from class org.vfny.geoserver.requests.Request |
getBaseUrl, getGeoServer, getHttpServletRequest, getRequest, getRootDir, getService, getValidationProcessor, getVersion, hashCode, isLoggedIn, setHttpServletRequest, setRequest, setService, setVersion |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String TRANSACTION_REQUEST_TYPE
protected java.util.List subRequests
protected java.lang.String lockId
public static final org.vfny.geoserver.requests.wfs.ReleaseAction ALL
WFS Specification Definition of ALL:
A value of ALL indicates that the locks on all feature instances locked using the specified lockId should be released when the transaction completes, regardless of whether or not a particular feature instance in the locked set was actually operated upon.
public static final org.vfny.geoserver.requests.wfs.ReleaseAction SOME
WFS Specification Definition of SOME:
A value of SOME indicates that only the locks on feature instances modified by the transaction should be released. The other, unmodified, feature instances should remain locked using the same LockId so that subsequent transactions can operate on those feature instances.In the event that the releaseAction is set to SOME, and an expiry period was specified, the expiry counter must be reset to zero after each transaction unless all feature instances in the locked set have been operated upon.
protected org.vfny.geoserver.requests.wfs.ReleaseAction releaseAction
protected java.lang.String handle
Note that SubTransactionRequests are allowed there own handle as well, if they don't have one we should try and describe their position in a relative way.
Constructor Detail |
public TransactionRequest()
Method Detail |
public void addSubRequest(SubTransactionRequest subRequest)
If subRequest does not yet have a handle we will invent one here and give it one, the alternative is have subRequest known about its parent Transaction in order to generate a handle.
subRequest
- To be part of this transaction request.public SubTransactionRequest getSubRequest(int i)
i
- the position of the operation request to get.
public int getSubRequestSize()
public void setHandle(java.lang.String handle)
handle
- The user name for this request.public java.lang.String getHandle()
public void setReleaseAction(java.lang.String releaseAction) throws WfsTransactionException
WfsTransactionException
public void setReleaseAction(boolean releaseAll)
No matter what value you pick the features you modify in this transaction that are held by lockID will be released.
releaseAll
- true if all features held by the lock should
be released after this operation.public org.vfny.geoserver.requests.wfs.ReleaseAction getReleaseAction()
public void setLockId(java.lang.String lockId)
lockId
- The authorization string to perform with this transaction.public java.lang.String getLockId()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
equals
in class Request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |