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

All known Subclasses:   org.geotools.data.gml.GMLTypeEntry,
ActiveTypeEntry
abstract public class ActiveTypeEntry implements TypeEntry(Code)
Starting place for holding information about a FeatureType.

Like say for instance the FeatureType, its metadata and so on.

The default implemenation should contain enough information to wean us off of AbstractDataStore. That is it should provide its own locking and event notification.

There is a naming convention:

  • data access follows bean conventions: getTypeName(), getSchema()
  • resource access methods follow Collections conventions reader(), writer(), etc...
  • overrrides are all protected and follow factory conventions: createWriter(), createAppend(), createFeatureSource(), createFeatureStore(), etc...
  • Feedback:

    • even notification yes
    • locking not - locking needs to be rejuggled
    • naming convention really helps when subclassing


    author:
       jgarnett


  • Field Summary
    final protected static  LoggerLOGGER
        
     Envelopebounds
        
     intcount
        
    public  FeatureListenerManagerlistenerManager
        
    protected  DataStoreparent
         Remember parent.

    Constructor Summary
    public  ActiveTypeEntry(DataStore parent, FeatureType schema, Map metadata)
        

    Method Summary
    protected  FeatureWritercreateAppend(Transaction transaction)
         It would be great to kill this method, and add a "skipToEnd" method to featureWriter?

    Override this if you can provide a native optimization for this.

    protected  FeatureLockingcreateFeatureLocking()
         Create the FeatureLocking, override for your own custom implementation.
    abstract public  FeatureSourcecreateFeatureSource()
        
    protected  FeatureSourcecreateFeatureSource(FeatureType featureType)
         Create the FeatureSource, override for your own custom implementation.

    Default implementation makes use of DataStore getReader( ...

    protected  FeatureStorecreateFeatureStore()
         Create the FeatureStore, override for your own custom implementation.
    public  FeatureReadercreateReader()
         Create a reader for this query.
    protected  FeatureReadercreateReader(Query query)
         GR: this method is called from inside getFeatureReader(Query ,Transaction ) to allow subclasses return an optimized FeatureReader wich supports the filter and attributes truncation specified in query

    A subclass that supports the creation of such an optimized FeatureReader shold override this method.

    protected  FeatureWritercreateWriter()
         Low level feature writer access.
    public  voidfireAdded(Feature newFeature, Transaction transaction)
        
    public  voidfireChanged(Feature before, Feature after, Transaction transaction)
        
    public  voidfireRemoved(Feature removedFeature, Transaction transaction)
        
    public  InternationalStringgetDescription()
         TODO summary sentence for getDescription ...
    public  InternationalStringgetDisplayName()
         TODO summary sentence for getDisplayName ...
    public  FeatureTypegetFeatureType()
         TODO summary sentence for getFeatureType ...
    public  String[]getMetadataNames()
         Metadata names from metadata.keySet().
    public  StringgetTypeName()
        
    protected  FiltergetUnsupportedFilter(Filter filter)
         GR: if a subclass supports filtering, it should override this method to return the unsupported part of the passed filter, so a FilteringFeatureReader will be constructed upon it.
    public  Mapmetadata()
         Map of metadata by name.
    public  FeatureReaderreader(Query query, Transaction transaction)
         Access a FeatureReader providing access to Feature information.
     TypeDiffStatestate(Transaction transaction)
        
    public  FeatureWriterwriter(Transaction transaction)
        

    Field Detail
    LOGGER
    final protected static Logger LOGGER(Code)



    bounds
    Envelope bounds(Code)
    Cached bounds



    count
    int count(Code)
    Cached count



    listenerManager
    public FeatureListenerManager listenerManager(Code)
    Manages listener lists for FeatureSource implementation



    parent
    protected DataStore parent(Code)
    Remember parent.

    We only refer to partent as a DataSource to keep hacks down.





    Constructor Detail
    ActiveTypeEntry
    public ActiveTypeEntry(DataStore parent, FeatureType schema, Map metadata)(Code)




    Method Detail
    createAppend
    protected FeatureWriter createAppend(Transaction transaction) throws IOException(Code)
    It would be great to kill this method, and add a "skipToEnd" method to featureWriter?

    Override this if you can provide a native optimization for this. (aka copy file, open the file in append mode, replace origional on close).




    createFeatureLocking
    protected FeatureLocking createFeatureLocking()(Code)
    Create the FeatureLocking, override for your own custom implementation.

    Warning: The default implementation of this method uses lockingManger. You must override this method if you support your own locking system (like WFS).




    createFeatureSource
    abstract public FeatureSource createFeatureSource()(Code)



    createFeatureSource
    protected FeatureSource createFeatureSource(FeatureType featureType)(Code)
    Create the FeatureSource, override for your own custom implementation.

    Default implementation makes use of DataStore getReader( ... ), and listenerManager.




    createFeatureStore
    protected FeatureStore createFeatureStore()(Code)
    Create the FeatureStore, override for your own custom implementation.



    createReader
    public FeatureReader createReader()(Code)
    Create a reader for this query.

    Subclass must override this to actually aquire content.


    Parameters:
      typeName -
    Parameters:
      query - FeatureReader for all content



    createReader
    protected FeatureReader createReader(Query query) throws IOException(Code)
    GR: this method is called from inside getFeatureReader(Query ,Transaction ) to allow subclasses return an optimized FeatureReader wich supports the filter and attributes truncation specified in query

    A subclass that supports the creation of such an optimized FeatureReader shold override this method. Otherwise, it just returns getFeatureReader(typeName)




    createWriter
    protected FeatureWriter createWriter()(Code)
    Low level feature writer access.

    This is the only method you must implement to aquire content.

    Subclass must supply a FeatureWriter



    fireAdded
    public void fireAdded(Feature newFeature, Transaction transaction)(Code)



    fireChanged
    public void fireChanged(Feature before, Feature after, Transaction transaction)(Code)



    fireRemoved
    public void fireRemoved(Feature removedFeature, Transaction transaction)(Code)



    getDescription
    public InternationalString getDescription()(Code)
    TODO summary sentence for getDescription ...
    See Also:   org.geotools.data.TypeEntry.getDescription



    getDisplayName
    public InternationalString getDisplayName()(Code)
    TODO summary sentence for getDisplayName ...
    See Also:   org.geotools.data.TypeEntry.getDisplayName



    getFeatureType
    public FeatureType getFeatureType()(Code)
    TODO summary sentence for getFeatureType ...
    See Also:   org.geotools.data.TypeEntry.getFeatureType
    throws:
      IOException -



    getMetadataNames
    public String[] getMetadataNames()(Code)
    Metadata names from metadata.keySet(). metadata names mentioned in metadata.keySet();



    getTypeName
    public String getTypeName()(Code)



    getUnsupportedFilter
    protected Filter getUnsupportedFilter(Filter filter)(Code)
    GR: if a subclass supports filtering, it should override this method to return the unsupported part of the passed filter, so a FilteringFeatureReader will be constructed upon it. Otherwise it will just return the same filter.

    If the complete filter is supported, the subclass must return Filter.INCLUDE




    metadata
    public Map metadata()(Code)
    Map of metadata by name. Map of metadata by name



    reader
    public FeatureReader reader(Query query, Transaction transaction) throws IOException(Code)
    Access a FeatureReader providing access to Feature information.

    This implementation passes off responsibility to the following overrideable methods:

    • getFeatureReader(String typeName) - subclass *required* to implement

    If you can handle some aspects of Query natively (say expressions or reprojection) override the following:

  • getFeatureReader(typeName, query) - override to handle query natively
  • getUnsupportedFilter(typeName, filter) - everything you cannot handle natively
  • getFeatureReader(String typeName) - you must implement this, but you could point it back to getFeatureReader( typeName, Query.ALL );




  • state
    TypeDiffState state(Transaction transaction)(Code)



    writer
    public FeatureWriter writer(Transaction transaction) 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.