Java Doc for FeatureStore.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » 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 » GeoTools 2.4.1 » org.geotools.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.data.FeatureStore

All known Subclasses:   org.geotools.data.store.ContentFeatureStore,  org.geotools.data.jdbc.JDBCFeatureStore,  org.geotools.data.wfs.WFSFeatureStore,  org.geotools.data.AbstractFeatureStore,  org.geotools.data.postgis.WrappingPostgisFeatureStore,
FeatureStore
public interface FeatureStore extends FeatureSource(Code)
Provides storage of data for Features.

Individual shapefiles, database tables, etc. are modified through this interface.

This is a prototype DataSource replacement please see FeatureSource for more information.


author:
   Jody Garnett
author:
   Ray Gallagher
author:
   Rob Hranac, TOPP
author:
   Chris Holmes, TOPP
version:
   $Id: FeatureStore.java 22642 2006-11-07 21:00:05Z jgarnett $




Method Summary
 SetaddFeatures(FeatureCollection collection)
     Adds all features from the passed feature collection to the datasource.
Parameters:
  collection - The collection of features to add.
 TransactiongetTransaction()
     Used to access the Transaction this DataSource is currently opperating against.
 voidmodifyFeatures(AttributeType[] type, Object[] value, Filter filter)
     Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter.
 voidmodifyFeatures(AttributeType type, Object value, Filter filter)
     Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter.
 voidremoveFeatures(Filter filter)
     Removes all of the features specificed by the passed filter from the collection.
 voidsetFeatures(FeatureReader reader)
     Deletes the all the current Features of this datasource and adds the new collection.
 voidsetTransaction(Transaction transaction)
     Provides a transaction for commit/rollback control of this FeatureStore.

This method operates as a replacement for setAutoCommitMode.




Method Detail
addFeatures
Set addFeatures(FeatureCollection collection) throws IOException(Code)
Adds all features from the passed feature collection to the datasource.
Parameters:
  collection - The collection of features to add. the FeatureIds of the newly added features.
throws:
  IOException - if anything goes wrong.



getTransaction
Transaction getTransaction()(Code)
Used to access the Transaction this DataSource is currently opperating against.

Example Use: adding features to a road DataSource


 Transaction t = roads.getTransaction();
 try{
 roads.addFeatures( features );
 roads.getTransaction().commit();
 }
 catch( IOException erp ){
 //something went wrong;
 roads.getTransaction().rollback();
 }
 
Transaction in use, or Transaction.AUTO_COMMIT



modifyFeatures
void modifyFeatures(AttributeType[] type, Object[] value, Filter filter) throws IOException(Code)
Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter.
Parameters:
  type - The attributes to modify.
Parameters:
  value - The values to put in the attribute types.
Parameters:
  filter - An OGC filter to note which attributes to modify.
throws:
  IOException - if the attribute and object arrays are not eqaullength, if the object types do not match the attribute types,or if there are backend errors.



modifyFeatures
void modifyFeatures(AttributeType type, Object value, Filter filter) throws IOException(Code)
Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter. A convenience method for single attribute modifications.
Parameters:
  type - The attributes to modify.
Parameters:
  value - The values to put in the attribute types.
Parameters:
  filter - An OGC filter to note which attributes to modify.
throws:
  IOException - If modificaton is not supported, if the object typedo not match the attribute type.



removeFeatures
void removeFeatures(Filter filter) throws IOException(Code)
Removes all of the features specificed by the passed filter from the collection.
Parameters:
  filter - An OpenGIS filter; specifies which features to remove.
throws:
  IOException - If anything goes wrong.



setFeatures
void setFeatures(FeatureReader reader) throws IOException(Code)
Deletes the all the current Features of this datasource and adds the new collection. Primarily used as a convenience method for file datasources.
Parameters:
  reader - - the collection to be written
throws:
  IOException - if there are any datasource errors.



setTransaction
void setTransaction(Transaction transaction)(Code)
Provides a transaction for commit/rollback control of this FeatureStore.

This method operates as a replacement for setAutoCommitMode. When a transaction is provided you are no longer automatically committing.

In order to return to AutoCommit mode supply the Transaction.AUTO_COMMIT to this method. Since this represents a return to AutoCommit mode the previous Transaction will be commited.


Parameters:
  transaction - DOCUMENT ME!



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