Java Doc for DefaultRepository.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) 


java.lang.Object
   org.geotools.data.DefaultRepository

DefaultRepository
public class DefaultRepository implements Repository(Code)
Quick hack of a DataRepository allows me to bridge the existing DataStore API with these experiments for a Opperations api. I have used the old DefaultCatalaog as a starting point. This also serves as a reminder that we need CrossDataStore functionality - at least for Locks. And possibly for "Query".
author:
   Jody Garnett


Field Summary
protected  SortedMapdatastores
    


Method Summary
public  DataStoredatastore(String id)
     Implement getDataStores.
public  MapgetDataStores()
     Access to the set of registered DataStores.
public  SortedMapgetFeatureSources()
    
public  SetgetPrefixes()
     Retrieve prefix set.
public  voidload(File propertiesFile)
     Load a quick datastore definition from a properties file.
public  booleanlockExists(String lockID)
     Implement lockExists.
public  booleanlockRefresh(String lockID, Transaction transaction)
     Implement lockRefresh.

Currently it is an error if the lockID is not found.

public  booleanlockRelease(String lockID, Transaction transaction)
     Implement lockRelease.

Currently it is not and error if the lockID is not found, it may have expired.

public  voidregister(String id, DataStore dataStore)
     Implement registerDataStore.
public  FeatureSourcesource(String dataStoreId, String typeName)
    
public  SortedMaptypes()
    

Field Detail
datastores
protected SortedMap datastores(Code)
Map of DataStore by dataStoreId





Method Detail
datastore
public DataStore datastore(String id)(Code)
Implement getDataStores.

Description ...


See Also:   org.geotools.data.Catalog.getDataStores(java.lang.String)
Parameters:
  id - a String giving the name of the DataStore the DataStore with the given name



getDataStores
public Map getDataStores()(Code)
Access to the set of registered DataStores.

The provided Set may not be modified :-)


See Also:   org.geotools.data.Catalog.getDataStores(java.lang.String)



getFeatureSources
public SortedMap getFeatureSources()(Code)



getPrefixes
public Set getPrefixes() throws IOException(Code)
Retrieve prefix set.
See Also:   org.geotools.data.Catalog.getPrefixes Set of namespace prefixes
throws:
  IOException -



load
public void load(File propertiesFile) throws Exception(Code)
Load a quick datastore definition from a properties file.

This is useful for test cases.


throws:
  IOException -
throws:
  FileNotFoundException -



lockExists
public boolean lockExists(String lockID)(Code)
Implement lockExists.
See Also:   org.geotools.data.Catalog.lockExists(java.lang.String)
Parameters:
  lockID -



lockRefresh
public boolean lockRefresh(String lockID, Transaction transaction) throws IOException(Code)
Implement lockRefresh.

Currently it is an error if the lockID is not found. Because if we can't find it we cannot refresh it.

Since locks are time sensitive it is impossible to check if a lockExists and then be sure it will still exist when you try to refresh it. Nothing we do can protect client code from this fact, they will need to do with the IOException when (not if) this situation occurs.


See Also:   org.geotools.data.Catalog.lockRefresh(java.lang.Stringorg.geotools.data.Transaction)
Parameters:
  lockID - Authorizataion of lock to refresh
Parameters:
  transaction - Transaction used to authorize refresh
throws:
  IOException - If opperation encounters problems, or lock not found
throws:
  IllegalArgumentException - if lockID is null



lockRelease
public boolean lockRelease(String lockID, Transaction transaction) throws IOException(Code)
Implement lockRelease.

Currently it is not and error if the lockID is not found, it may have expired. Since locks are time sensitive it is impossible to check if a lockExists and then be sure it will still exist when you try to release it.


See Also:   org.geotools.data.Catalog.lockRefresh(java.lang.Stringorg.geotools.data.Transaction)
Parameters:
  lockID - Authorizataion of lock to refresh
Parameters:
  transaction - Transaction used to authorize refresh
throws:
  IOException - If opperation encounters problems
throws:
  IllegalArgumentException - if lockID is null



register
public void register(String id, DataStore dataStore) throws IOException(Code)
Implement registerDataStore.

Description ...


See Also:   org.geotools.data.Catalog.registerDataStore(org.geotools.data.DataStore)
Parameters:
  dataStore -
throws:
  IOException -



source
public FeatureSource source(String dataStoreId, String typeName) throws IOException(Code)



types
public SortedMap types() throws IOException(Code)
All FeatureTypes by dataStoreId:typeName
throws:
  IOException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.