org.geotools.data
Class AbstractFileDataStore

Object
  extended by AbstractDataStore
      extended by AbstractFileDataStore
All Implemented Interfaces:
DataAccess<SimpleFeatureType,SimpleFeature>, DataStore
Direct Known Subclasses:
ShapefileDataStore

public abstract class AbstractFileDataStore
extends AbstractDataStore

This class assumes the DataStore represents a single source, represented by a URL. In many cases the default functionality is chained off to the parent class (AbstractDataStore).

Author:
dzwiers
See Also:
AbstractDataStore
Module:

Field Summary
 
Fields inherited from class AbstractDataStore
isWriteable, listenerManager, LOGGER
 
Constructor Summary
AbstractFileDataStore()
           
 
Method Summary
protected abstract  FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader()
          Singular version, which must be implemented to represent a Reader for the url being read.
 FeatureSource<SimpleFeatureType,SimpleFeature> getFeatureSource()
          Singular version, calls parent with getSchema().getTypeName()
 FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Filter filter, Transaction transaction)
          Singular version, calls parent with getSchema().getTypeName()
 FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Transaction transaction)
           
 FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriterAppend(Transaction transaction)
           
abstract  SimpleFeatureType getSchema()
          Singular version, returns the FeatureType for the url being read.
 void updateSchema(SimpleFeatureType featureType)
          Singular version, calls parent with getSchema().getTypeName()
 
Methods inherited from class AbstractDataStore
createFeatureWriter, createLockingManager, createMetadata, createSchema, dispose, getBounds, getCount, getFeatureReader, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getInfo, getLockingManager, getNames, getSchema, getSchema, getSupportedHints, getTypeNames, getUnsupportedFilter, getView, state, updateSchema, updateSchema
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFileDataStore

public AbstractFileDataStore()
Method Detail

getSchema

public abstract SimpleFeatureType getSchema()
                                     throws IOException
Singular version, returns the FeatureType for the url being read.

Throws:
IOException
See Also:
DataStore.getSchema(java.lang.String)

getFeatureReader

protected abstract FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader()
                                                                            throws IOException
Singular version, which must be implemented to represent a Reader for the url being read.

Throws:
IOException
See Also:
org.geotools.data.DataStore#getFeatureReader(java.lang.String)

updateSchema

public void updateSchema(SimpleFeatureType featureType)
                  throws IOException
Singular version, calls parent with getSchema().getTypeName()

Throws:
IOException
See Also:
DataStore.updateSchema(java.lang.String,SimpleFeatureType)

getFeatureSource

public FeatureSource<SimpleFeatureType,SimpleFeature> getFeatureSource()
                                                                throws IOException
Singular version, calls parent with getSchema().getTypeName()

Throws:
IOException
See Also:
DataStore.getFeatureSource(java.lang.String)

getFeatureWriter

public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Filter filter,
                                                                       Transaction transaction)
                                                                throws IOException
Singular version, calls parent with getSchema().getTypeName()

Throws:
IOException

getFeatureWriter

public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(Transaction transaction)
                                                                throws IOException
Throws:
IOException
See Also:
DataStore.getFeatureWriter(java.lang.String, org.geotools.data.Transaction)

getFeatureWriterAppend

public FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriterAppend(Transaction transaction)
                                                                      throws IOException
Throws:
IOException
See Also:
DataStore.getFeatureWriterAppend(java.lang.String, org.geotools.data.Transaction)


Copyright © 1996-2009 Geotools. All Rights Reserved.