Java Doc for LockFeature.java in  » GIS » deegree » org » deegree » ogcwebservices » wfs » operation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » deegree » org.deegree.ogcwebservices.wfs.operation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest
   org.deegree.ogcwebservices.wfs.operation.LockFeature

LockFeature
public class LockFeature extends AbstractWFSRequest (Code)
Represents a LockFeature request to a web feature service.

Web connections are inherently stateless. Unfortunately, this means that the semantics of serializable transactions are not preserved. To understand the issue consider an UPDATE operation.

The client fetches a feature instance. The feature is then modified on the client side, and submitted back to the database, via a Transaction request for update. Serializability is lost since there is nothing to guarantee that while the feature was being modified on the client side, another client did not come along and update that same feature in the database.

One way to ensure serializability is to require that access to data be done in a mutually exclusive manner; that is while one transaction accesses a data item, no other transaction can modify the same data item. This can be accomplished by using locks that control access to the data.

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.
author:
   Andreas Poth
author:
   Markus Schneider
author:
   last edited by: $Author: apoth $
version:
   $Revision: 9345 $


Inner Class :public static enum ALL_SOME_TYPE

Field Summary
public static  StringDEFAULT_EXPIRY
     Default value for expiry (in minutes).
public static  StringLOCK_ACTION_ALL
     String value for ALL_SOME_TYPE ALL_SOME_TYPE.ALL .
public static  StringLOCK_ACTION_SOME
     String value for ALL_SOME_TYPE ALL_SOME_TYPE.SOME .

Constructor Summary
 LockFeature(String version, String id, String handle, long expiry, ALL_SOME_TYPE lockAction, List<Lock> locks)
     Creates a new LockFeature instance from the given parameters.

Method Summary
public static  LockFeaturecreate(String version, String id, String handle, long expiry, ALL_SOME_TYPE lockAction, List<Lock> locks)
     Creates a new LockFeature instance from the given parameters.
public static  LockFeaturecreate(String id, Element root)
     Creates a new LockFeature instance from a document that contains the DOM representation of the request.
public static  LockFeaturecreate(Map<String, String> kvp)
     Creates a new LockFeature request from the given parameter map.
public  longgetExpiry()
     Returns the limit on how long the web feature service holds the lock in the event that a transaction is never issued that would release the lock.
public  ALL_SOME_TYPEgetLockAction()
     Returns the mode for lock acquisition.
public  List<Lock>getLocks()
     Returns the contained lock operations.
public  booleanlockAllFeatures()
     Returns whether this request requires that all features have to be lockable in order to be performed succesfully.
static  ALL_SOME_TYPEvalidateLockAction(String lockActionString)
    

Field Detail
DEFAULT_EXPIRY
public static String DEFAULT_EXPIRY(Code)
Default value for expiry (in minutes).



LOCK_ACTION_ALL
public static String LOCK_ACTION_ALL(Code)
String value for ALL_SOME_TYPE ALL_SOME_TYPE.ALL .



LOCK_ACTION_SOME
public static String LOCK_ACTION_SOME(Code)
String value for ALL_SOME_TYPE ALL_SOME_TYPE.SOME .




Constructor Detail
LockFeature
LockFeature(String version, String id, String handle, long expiry, ALL_SOME_TYPE lockAction, List<Lock> locks)(Code)
Creates a new LockFeature instance from the given parameters.
Parameters:
  version - request version
Parameters:
  id - id of the request
Parameters:
  handle - handle of the request
Parameters:
  expiry - the limit on how long the web feature service keeps the lock (in milliseconds)
Parameters:
  lockAction - method for lock acquisition
Parameters:
  locks - contained lock operations




Method Detail
create
public static LockFeature create(String version, String id, String handle, long expiry, ALL_SOME_TYPE lockAction, List<Lock> locks)(Code)
Creates a new LockFeature instance from the given parameters.
Parameters:
  version - request version
Parameters:
  id - id of the request
Parameters:
  handle - handle of the request
Parameters:
  expiry - the limit on how long the web feature service holds the lock (in milliseconds)
Parameters:
  lockAction - method for lock acquisition
Parameters:
  locks - contained lock operations new LockFeature request



create
public static LockFeature create(String id, Element root) throws OGCWebServiceException(Code)
Creates a new LockFeature instance from a document that contains the DOM representation of the request.
Parameters:
  id - of the request
Parameters:
  root - element that contains the DOM representation of the request new LockFeature request
throws:
  OGCWebServiceException -



create
public static LockFeature create(Map<String, String> kvp) throws InconsistentRequestException, InvalidParameterValueException(Code)
Creates a new LockFeature request from the given parameter map.
Parameters:
  kvp - key-value pairs, keys have to be uppercase new LockFeature request
throws:
  InconsistentRequestException -
throws:
  InvalidParameterValueException -



getExpiry
public long getExpiry()(Code)
Returns the limit on how long the web feature service holds the lock in the event that a transaction is never issued that would release the lock. The expiry limit is specified in milliseconds. the limit on how long the web feature service holds the lock (in milliseconds)



getLockAction
public ALL_SOME_TYPE getLockAction()(Code)
Returns the mode for lock acquisition.
See Also:   ALL_SOME_TYPE the mode for lock acquisition



getLocks
public List<Lock> getLocks()(Code)
Returns the contained lock operations. the contained lock operations



lockAllFeatures
public boolean lockAllFeatures()(Code)
Returns whether this request requires that all features have to be lockable in order to be performed succesfully.
See Also:   ALL_SOME_TYPE true, if all features have to be lockable, false otherwise



validateLockAction
static ALL_SOME_TYPE validateLockAction(String lockActionString) throws InvalidParameterValueException(Code)



Fields inherited from org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest
public static String FORMAT_GML2(Code)(Java Doc)
public static String FORMAT_GML2_WFS100(Code)(Java Doc)
public static String FORMAT_GML3(Code)(Java Doc)
public static String FORMAT_XML(Code)(Java Doc)

Methods inherited from org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest
protected static void checkServiceParameter(Map<String, String> model) throws InconsistentRequestException(Code)(Java Doc)
protected static String checkVersionParameter(Map<String, String> model) throws InconsistentRequestException, InvalidParameterValueException(Code)(Java Doc)
protected static Filter extractBBOXFilter(Map<String, String> model) throws InvalidParameterValueException(Code)(Java Doc)
protected static Map<QualifiedName, Filter> extractFilters(Map<String, String> kvp, QualifiedName[] typeNames) throws InvalidParameterValueException(Code)(Java Doc)
protected static NamespaceContext extractNamespaceParameter(Map<String, String> model) throws InvalidParameterValueException(Code)(Java Doc)
protected static QualifiedName[] extractTypeNames(Map<String, String> kvp) throws InvalidParameterValueException(Code)(Java Doc)
public String getHandle()(Code)(Java Doc)
public String getServiceName()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.