org.deegree_impl.services.wfs.protocol
Class WFSLock_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wfs.protocol.WFSLock_Impl
All Implemented Interfaces:
WFSLock

class WFSLock_Impl
extends java.lang.Object
implements WFSLock

The purpose of the LockFeature interface is to expose a long term feature locking mechanism to ensure consistency. The lock is considered long term because network latency would make feature locks last relatively longer than native commercial database locks.

The LockFeature interface is optional and need only be implemented if the underlying datastore supports (or can be made to support) data locking. In addition, the implementation of locking is completely opaque to the client.

--------------------------------------------------------

Version:
$Revision: 1.3 $ $Date: 2004/03/12 15:56:49 $
Author:
Andreas Poth Katharina Lupp

Field Summary
private  java.util.ArrayList featureIds
           
private  Filter filter
           
private  java.lang.String handle
           
private  java.lang.String lockAction
           
private  java.lang.String typeName
           
 
Constructor Summary
(package private) WFSLock_Impl()
          default constructor
(package private) WFSLock_Impl(java.lang.String lockAction, java.lang.String typeName, java.lang.String handle, Filter filter, java.lang.String[] featureIds)
          constructor initializing the class with the
 
Method Summary
 void addFeatureIds(java.lang.String featureIds)
          adds the
 java.lang.String[] getFeatureIds()
          A list of feature identifiers upon which the specified operation shall be applied.
 Filter getFilter()
          A filter specification describes a set of features to operate upon.
 java.lang.String getHandle()
          The handle attribute is included to allow a server to associate any text to the response.
 java.lang.String getLockAction()
          Specify how the lock should be acquired.
 java.lang.String getTypeName()
          If a filter is not specified, then the optional typeName attribute can be used to specify that all feature instances of a particular feature type should be locked.
 void setFeatureIds(java.lang.String[] featureIds)
          sets the
 void setFilter(Filter filter)
          sets the
 void setHandle(java.lang.String handle)
          sets the
 void setLockAction(java.lang.String lockAction)
          sets
 void setTypeName(java.lang.String typeName)
          sets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

featureIds

private java.util.ArrayList featureIds

filter

private Filter filter

handle

private java.lang.String handle

lockAction

private java.lang.String lockAction

typeName

private java.lang.String typeName
Constructor Detail

WFSLock_Impl

WFSLock_Impl()
default constructor


WFSLock_Impl

WFSLock_Impl(java.lang.String lockAction,
             java.lang.String typeName,
             java.lang.String handle,
             Filter filter,
             java.lang.String[] featureIds)
constructor initializing the class with the

Method Detail

getLockAction

public java.lang.String getLockAction()
Specify how the lock should be acquired. ALL indicates to try to get all feature locks otherwise fail. SOME indicates to try to get as many feature locks as possible. The default LOCKACTION is ALL.

Specified by:
getLockAction in interface WFSLock

setLockAction

public void setLockAction(java.lang.String lockAction)
sets


getTypeName

public java.lang.String getTypeName()
If a filter is not specified, then the optional typeName attribute can be used to specify that all feature instances of a particular feature type should be locked.

Specified by:
getTypeName in interface WFSLock

setTypeName

public void setTypeName(java.lang.String typeName)
sets


getHandle

public java.lang.String getHandle()
The handle attribute is included to allow a server to associate any text to the response. The purpose of the handle attribute is to provide an error handling mechanism for locating a statement that might fail. Or to identify an InsertResult.

Specified by:
getHandle in interface WFSLock

setHandle

public void setHandle(java.lang.String handle)
sets the


getFilter

public Filter getFilter()
A filter specification describes a set of features to operate upon. The format of the filter is defined in the OGC Filter Encoding Specification. Optional. No default. Prerequisite: TYPENAME

Specified by:
getFilter in interface WFSLock

setFilter

public void setFilter(Filter filter)
sets the


getFeatureIds

public java.lang.String[] getFeatureIds()
A list of feature identifiers upon which the specified operation shall be applied. Optional. No default.

Specified by:
getFeatureIds in interface WFSLock

addFeatureIds

public void addFeatureIds(java.lang.String featureIds)
adds the


setFeatureIds

public void setFeatureIds(java.lang.String[] featureIds)
sets the