|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractDataStore
PropertyDataStore
public class PropertyDataStore
Sample DataStore implementation, please see formal tutorial included with users docs.
Field Summary | |
---|---|
protected File |
directory
|
protected String |
namespaceURI
|
Fields inherited from class AbstractDataStore |
---|
isWriteable, listenerManager, LOGGER |
Constructor Summary | |
---|---|
PropertyDataStore(File dir)
|
|
PropertyDataStore(File dir,
String namespaceURI)
|
Method Summary | |
---|---|
void |
createSchema(SimpleFeatureType featureType)
Subclass should implement to provide writing support. |
protected FeatureReader<SimpleFeatureType,SimpleFeature> |
getFeatureReader(String typeName)
Subclass must implement. |
FeatureSource<SimpleFeatureType,SimpleFeature> |
getFeatureSource(String typeName)
Default implementation based on getFeatureReader and getFeatureWriter. |
protected FeatureWriter<SimpleFeatureType,SimpleFeature> |
getFeatureWriter(String typeName)
Subclass can implement this to provide writing support. |
ServiceInfo |
getInfo()
Information about this service. |
SimpleFeatureType |
getSchema(String typeName)
Retrive schema information for typeName |
String[] |
getTypeNames()
helper method for retrieving all the names. |
void |
setNamespaceURI(String namespaceURI)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File directory
protected String namespaceURI
Constructor Detail |
---|
public PropertyDataStore(File dir)
public PropertyDataStore(File dir, String namespaceURI)
Method Detail |
---|
public ServiceInfo getInfo()
DataAccess
This method offers access to a summary of header or metadata information describing the service.
Subclasses may return a specific ServiceInfo instance that has additional information (such as FilterCapabilities).
getInfo
in interface DataAccess<SimpleFeatureType,SimpleFeature>
getInfo
in class AbstractDataStore
public void setNamespaceURI(String namespaceURI)
public String[] getTypeNames()
AbstractDataStore
getTypeNames
in interface DataStore
getTypeNames
in class AbstractDataStore
public SimpleFeatureType getSchema(String typeName) throws IOException
AbstractDataStore
getSchema
in interface DataStore
getSchema
in class AbstractDataStore
typeName
- typeName of requested FeatureType
IOException
- If typeName cannot be foundprotected FeatureReader<SimpleFeatureType,SimpleFeature> getFeatureReader(String typeName) throws IOException
AbstractDataStore
getFeatureReader
in class AbstractDataStore
IOException
protected FeatureWriter<SimpleFeatureType,SimpleFeature> getFeatureWriter(String typeName) throws IOException
AbstractDataStore
getFeatureWriter
in class AbstractDataStore
IOException
public void createSchema(SimpleFeatureType featureType) throws IOException
AbstractDataStore
createSchema
in interface DataAccess<SimpleFeatureType,SimpleFeature>
createSchema
in class AbstractDataStore
featureType
- Requested FeatureType
IOException
public FeatureSource<SimpleFeatureType,SimpleFeature> getFeatureSource(String typeName) throws IOException
AbstractDataStore
We should be able to optimize this to only get the RowSet once
getFeatureSource
in interface DataStore
getFeatureSource
in class AbstractDataStore
IOException
DataStore.getFeatureSource(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |