public class PropertyDataStore extends ContentDataStore
Modifier and Type | Field and Description |
---|---|
protected File |
dir |
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, LOGGER, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE
Constructor and Description |
---|
PropertyDataStore(File dir) |
PropertyDataStore(File dir,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
protected ContentFeatureSource |
createFeatureSource(ContentEntry entry)
Instantiates new feature source for the entry.
|
void |
createSchema(SimpleFeatureType featureType)
Creates a new schema in the datastore.
|
protected List<Name> |
createTypeNames()
Creates a set of qualified names corresponding to the types that the datastore provides.
|
ServiceInfo |
getInfo()
Information about this service.
|
List<Name> |
getNames()
Returns the same list of names than
ContentDataStore.getTypeNames() meaning the returned Names have
no namespace set. |
void |
removeSchema(Name typeName)
Used to permanently remove a schema from the underlying storage
This functionality is similar to an "drop table" statement in SQL.
|
void |
removeSchema(String typeName)
Used to permanently remove a schema from the underlying storage
This functionality is similar to an "drop table" statement in SQL.
|
void |
setNamespaceURI(String namespaceURI)
Sets the namespace uri of the datastore.
|
createContentState, dispose, ensureEntry, ensureFeatureStore, entry, getDataStoreFactory, getEntry, getFeatureFactory, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureTypeFactory, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFilterFactory, getGeometryFactory, getLockingManager, getLogger, getNamespaceURI, getSchema, getSchema, getTypeNames, name, removeEntry, setDataStoreFactory, setFeatureFactory, setFeatureTypeFactory, setFilterFactory, setGeometryFactory, updateSchema, updateSchema
protected File dir
public PropertyDataStore(File dir)
public void createSchema(SimpleFeatureType featureType) throws IOException
ContentDataStore
This implementation throws aUnsupportedOperationException
. Subclasses should
override to support schema creation.
createSchema
in interface DataAccess<SimpleFeatureType,SimpleFeature>
createSchema
in class ContentDataStore
featureType
- FetureType to add to DataStoreIOException
- If featureType cannot be createdDataAccess.createSchema(FeatureType)
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 ContentDataStore
public void setNamespaceURI(String namespaceURI)
ContentDataStore
This will be used to qualify the entries or types of the datastore.
setNamespaceURI
in class ContentDataStore
namespaceURI
- The namespace uri, may be null
.protected List<Name> createTypeNames() throws IOException
ContentDataStore
Namespaces may be left null
for data stores which do not support namespace
qualified type names.
createTypeNames
in class ContentDataStore
Name
.IOException
- Any errors occuring connecting to data.public List<Name> getNames() throws IOException
ContentDataStore
ContentDataStore.getTypeNames()
meaning the returned Names have
no namespace set.getNames
in interface DataAccess<SimpleFeatureType,SimpleFeature>
getNames
in class ContentDataStore
IOException
DataAccess.getNames()
protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException
ContentDataStore
Subclasses should override this method to return a specific subclass of ContentFeatureSource
.
createFeatureSource
in class ContentDataStore
entry
- The entry.ContentFeatureSource
for the entry.IOException
public void removeSchema(Name typeName) throws IOException
DataAccess
This functionality is similar to an "drop table" statement in SQL. Implementation is optional; it may not be supported by all servers or files.
removeSchema
in interface DataAccess<SimpleFeatureType,SimpleFeature>
removeSchema
in class ContentDataStore
IOException
- if the operation failedDataAccess.removeSchema(Name)
public void removeSchema(String typeName) throws IOException
DataStore
This functionality is similar to an "drop table" statement in SQL. Implementation is optional; it may not be supported by all servers or files.
removeSchema
in interface DataStore
removeSchema
in class ContentDataStore
IOException
- if the operation failedDataStore.removeSchema(String)
Copyright © 1996–2019 Geotools. All rights reserved.