org.geotools.data.property
Class PropertyDataStore

java.lang.Object
  extended byorg.geotools.data.AbstractDataStore
      extended byorg.geotools.data.property.PropertyDataStore
All Implemented Interfaces:
DataStore

public class PropertyDataStore
extends AbstractDataStore


Field Summary
protected  java.io.File directory
           
 
Fields inherited from class org.geotools.data.AbstractDataStore
isWriteable, listenerManager, LOGGER
 
Constructor Summary
PropertyDataStore(java.io.File dir)
           
 
Method Summary
 void createSchema(FeatureType featureType)
          Subclass should implement to provide writing support.
protected  FeatureReader getFeatureReader(java.lang.String typeName)
          Subclass must implement.
 FeatureSource getFeatureSource(java.lang.String typeName)
          Default implementation based on getFeatureReader and getFeatureWriter.
protected  FeatureWriter getFeatureWriter(java.lang.String typeName)
          Subclass can implement this to provide writing support.
 FeatureType getSchema(java.lang.String typeName)
          Retrive schema information for typeName
 java.lang.String[] getTypeNames()
          Convience method for retriving all the names from the Catalog Entires
 
Methods inherited from class org.geotools.data.AbstractDataStore
createFeatureWriter, createLockingManager, createMetadata, getBounds, getCount, getFeatureReader, getFeatureReader, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getUnsupportedFilter, getView, updateSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directory

protected java.io.File directory
Constructor Detail

PropertyDataStore

public PropertyDataStore(java.io.File dir)
Method Detail

getTypeNames

public java.lang.String[] getTypeNames()
Description copied from class: AbstractDataStore
Convience method for retriving all the names from the Catalog Entires

Specified by:
getTypeNames in interface DataStore
Specified by:
getTypeNames in class AbstractDataStore

getSchema

public FeatureType getSchema(java.lang.String typeName)
                      throws java.io.IOException
Description copied from class: AbstractDataStore
Retrive schema information for typeName

Specified by:
getSchema in interface DataStore
Specified by:
getSchema in class AbstractDataStore
Throws:
java.io.IOException

getFeatureReader

protected FeatureReader getFeatureReader(java.lang.String typeName)
                                  throws java.io.IOException
Description copied from class: AbstractDataStore
Subclass must implement.

Specified by:
getFeatureReader in class AbstractDataStore
Parameters:
typeName -
Returns:
FeatureReader over contents of typeName
Throws:
java.io.IOException

getFeatureWriter

protected FeatureWriter getFeatureWriter(java.lang.String typeName)
                                  throws java.io.IOException
Description copied from class: AbstractDataStore
Subclass can implement this to provide writing support.

Overrides:
getFeatureWriter in class AbstractDataStore
Parameters:
typeName -
Returns:
FeatureWriter over contents of typeName
Throws:
java.io.IOException - Subclass may throw IOException

createSchema

public void createSchema(FeatureType featureType)
                  throws java.io.IOException
Description copied from class: AbstractDataStore
Subclass should implement to provide writing support.

Specified by:
createSchema in interface DataStore
Overrides:
createSchema in class AbstractDataStore
Parameters:
featureType - Requested FeatureType
Throws:
java.io.IOException

getFeatureSource

public FeatureSource getFeatureSource(java.lang.String typeName)
                               throws java.io.IOException
Description copied from class: AbstractDataStore
Default implementation based on getFeatureReader and getFeatureWriter.

We should be able to optimize this to only get the RowSet once

Specified by:
getFeatureSource in interface DataStore
Overrides:
getFeatureSource in class AbstractDataStore
Throws:
java.io.IOException
See Also:
DataStore.getFeatureSource(java.lang.String)


Copyright © GeoTools. All Rights Reserved.