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


java.lang.Object
   org.geotools.data.store.ContentDataStore

All known Subclasses:   org.geotools.data.jdbc.JDBCDataStore,
ContentDataStore
abstract public class ContentDataStore implements DataStore(Code)
Abstract implementation of DataStore.

Subclasses must implement the following methods.


author:
   Jody Garnett, Refractions Research Inc.
author:
   Justin Deoliveira, The Open Planning Project


Field Summary
final static  LoggerLOGGER
    
final  Mapentries
     Map one for each kind of content served up.
protected  SimpleFeatureFactoryfeatureFactory
    
protected  FilterFactoryfilterFactory
    
protected  GeometryFactorygeometryFactory
    
protected  StringnamespaceURI
    
protected  SimpleTypeFactorytypeFactory
    

Constructor Summary
public  ContentDataStore()
    

Method Summary
protected  ContentStatecreateContentState(ContentEntry entry)
     Instantiates a new conent state for the entry.

Subclasses may override this method to return a specific subclass of ContentState .


Parameters:
  entry - The entry.
abstract protected  ContentFeatureSourcecreateFeatureSource(ContentEntry entry)
     Instantiates new feature source for the entry.

Subclasses should override this method to return a specific subclass of ContentFeatureSource .


Parameters:
  entry - The entry.
public  voidcreateSchema(FeatureType featureType)
     The default implementation of this method throws a UnsupportedOperationException , subclasses should implement to support schema creation.
abstract protected  ListcreateTypeNames()
     Creates a set of qualified names corresponding to the types that the datastore provides.
final protected  ContentEntryensureEntry(TypeName name)
     Helper method to look up an entry in the datastore which throws an IOException in the event that the entry does not exist.
Parameters:
  name - The name of the entry.
final protected  ContentEntryentry(TypeName name)
     Helper method to look up an entry in the datastore.

This method will create a new instance of ContentEntry if one does not exist.

In the event that the name does not map to an entry and one cannot be created null will be returned.

public  SimpleFeatureFactorygetFeatureFactory()
    
final public  FeatureReadergetFeatureReader(Query query, Transaction transaction)
     Delegates to ContentDataStore.query(Query,Transaction) and wraps the result in a DelegateFeatureReader .
final public  FeatureSourcegetFeatureSource(String typeName)
     Delegates to ContentDataStore.getFeatureSource(TypeName,Transaction) .
final public  FeatureSourcegetFeatureSource(TypeName typeName, Transaction tx)
     Returns a feature source for a feature type and transaction.

The resulting feature source is cached in the state of the entry for the type.


Parameters:
  typeName - The entry name.
Parameters:
  tx - A transaction.
final public  FeatureWritergetFeatureWriter(String typeName, Filter filter, Transaction transaction)
    
final public  FeatureWritergetFeatureWriter(String typeName, Transaction transaction)
    
final public  FeatureWritergetFeatureWriterAppend(String typeName, Transaction transaction)
    
public  FilterFactorygetFilterFactory()
    
public  GeometryFactorygetGeometryFactory()
    
final public  LockingManagergetLockingManager()
    
public  LoggergetLogger()
     Returns the logger for the datastore.

Subclasses should override to provide a differnt logging instance.

public  StringgetNamespaceURI()
    
final public  FeatureTypegetSchema(String typeName)
    
public  SimpleTypeFactorygetTypeFactory()
    
final public  String[]getTypeNames()
     This method delegates to ContentDataStore.createTypeNames() .
final public  FeatureSourcegetView(Query query)
    
final protected  TypeNamename(String typeName)
     Helper method to wrap a non-qualified name.
final protected  FeatureCollectionquery(Query query, Transaction transaction)
     Helper method for returning the feature collection for a query / transaction pair.
public  voidsetFeatureFactory(SimpleFeatureFactory featureFactory)
    
public  voidsetFilterFactory(FilterFactory filterFactory)
    
public  voidsetGeometryFactory(GeometryFactory geometryFactory)
    
public  voidsetNamespaceURI(String namespaceURI)
    
public  voidsetTypeFactory(SimpleTypeFactory typeFactory)
    
final public  voidupdateSchema(String typeName, FeatureType featureType)
    

Field Detail
LOGGER
final static Logger LOGGER(Code)
logging instance



entries
final Map entries(Code)
Map one for each kind of content served up.



featureFactory
protected SimpleFeatureFactory featureFactory(Code)
Factory used to create features



filterFactory
protected FilterFactory filterFactory(Code)
Factory used to create filters



geometryFactory
protected GeometryFactory geometryFactory(Code)
Factory used to create geometries



namespaceURI
protected String namespaceURI(Code)
Application namespace uri of the datastore



typeFactory
protected SimpleTypeFactory typeFactory(Code)
Factory used to create feature types




Constructor Detail
ContentDataStore
public ContentDataStore()(Code)




Method Detail
createContentState
protected ContentState createContentState(ContentEntry entry)(Code)
Instantiates a new conent state for the entry.

Subclasses may override this method to return a specific subclass of ContentState .


Parameters:
  entry - The entry. A new instance of ContentState for the entry.



createFeatureSource
abstract protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException(Code)
Instantiates new feature source for the entry.

Subclasses should override this method to return a specific subclass of ContentFeatureSource .


Parameters:
  entry - The entry. An new instance of ContentFeatureSource for the entry.



createSchema
public void createSchema(FeatureType featureType) throws IOException(Code)
The default implementation of this method throws a UnsupportedOperationException , subclasses should implement to support schema creation.
See Also:   DataStore.createSchema(FeatureType)



createTypeNames
abstract protected List createTypeNames() throws IOException(Code)
Creates a set of qualified names corresponding to the types that the datastore provides.

Namespaces may be left null for data stores which do not support namespace qualified type names.

A list of TypeName.
throws:
  IOException - Any errors occuring connecting to data.



ensureEntry
final protected ContentEntry ensureEntry(TypeName name) throws IOException(Code)
Helper method to look up an entry in the datastore which throws an IOException in the event that the entry does not exist.
Parameters:
  name - The name of the entry. The entry.
throws:
  IOException - If hte entry does not exist, or if there was an errorlooking it up.



entry
final protected ContentEntry entry(TypeName name) throws IOException(Code)
Helper method to look up an entry in the datastore.

This method will create a new instance of ContentEntry if one does not exist.

In the event that the name does not map to an entry and one cannot be created null will be returned. Note that ContentDataStore.ensureEntry(TypeName) will throw an exception in this case.


Parameters:
  The - name of the entry. The entry, or null if it does not exist.



getFeatureFactory
public SimpleFeatureFactory getFeatureFactory()(Code)



getFeatureReader
final public FeatureReader getFeatureReader(Query query, Transaction transaction) throws IOException(Code)
Delegates to ContentDataStore.query(Query,Transaction) and wraps the result in a DelegateFeatureReader .
See Also:   DataStore.getFeatureReader(QueryTransaction)



getFeatureSource
final public FeatureSource getFeatureSource(String typeName) throws IOException(Code)
Delegates to ContentDataStore.getFeatureSource(TypeName,Transaction) .
See Also:   DataStore.getFeatureSource(String)



getFeatureSource
final public FeatureSource getFeatureSource(TypeName typeName, Transaction tx) throws IOException(Code)
Returns a feature source for a feature type and transaction.

The resulting feature source is cached in the state of the entry for the type.


Parameters:
  typeName - The entry name.
Parameters:
  tx - A transaction. The feature source for the name and transaction.



getFeatureWriter
final public FeatureWriter getFeatureWriter(String typeName, Filter filter, Transaction transaction) throws IOException(Code)



getFeatureWriter
final public FeatureWriter getFeatureWriter(String typeName, Transaction transaction) throws IOException(Code)



getFeatureWriterAppend
final public FeatureWriter getFeatureWriterAppend(String typeName, Transaction transaction) throws IOException(Code)



getFilterFactory
public FilterFactory getFilterFactory()(Code)



getGeometryFactory
public GeometryFactory getGeometryFactory()(Code)



getLockingManager
final public LockingManager getLockingManager()(Code)



getLogger
public Logger getLogger()(Code)
Returns the logger for the datastore.

Subclasses should override to provide a differnt logging instance. This implementation uses the logger "org.geotools.data".




getNamespaceURI
public String getNamespaceURI()(Code)



getSchema
final public FeatureType getSchema(String typeName) throws IOException(Code)
Calls through to getFeatureSource(typeName).getSchema()
See Also:   DataStore.getSchema(String)



getTypeFactory
public SimpleTypeFactory getTypeFactory()(Code)



getTypeNames
final public String[] getTypeNames() throws IOException(Code)
This method delegates to ContentDataStore.createTypeNames() .
See Also:   DataStore.getTypeNames



getView
final public FeatureSource getView(Query query) throws IOException, SchemaException(Code)



name
final protected TypeName name(String typeName)(Code)
Helper method to wrap a non-qualified name.



query
final protected FeatureCollection query(Query query, Transaction transaction) throws IOException(Code)
Helper method for returning the feature collection for a query / transaction pair.

The implementation of this method delegates to ContentFeatureSource.getFeatures(Query)


Parameters:
  query - The query to make against the datastore.
Parameters:
  transaction - A transaction A FeatureCollection matching the query.
throws:
  IOException - Any errors that occur when interacting with the data.



setFeatureFactory
public void setFeatureFactory(SimpleFeatureFactory featureFactory)(Code)



setFilterFactory
public void setFilterFactory(FilterFactory filterFactory)(Code)



setGeometryFactory
public void setGeometryFactory(GeometryFactory geometryFactory)(Code)



setNamespaceURI
public void setNamespaceURI(String namespaceURI)(Code)



setTypeFactory
public void setTypeFactory(SimpleTypeFactory typeFactory)(Code)



updateSchema
final public void updateSchema(String typeName, FeatureType featureType) throws IOException(Code)



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.