public class WFSContentDataAccess extends Object implements DataAccess<FeatureType,Feature>
Modifier and Type | Field and Description |
---|---|
protected String |
namespaceURI
namespace URL of the datastore itself, or default namespace
|
Constructor and Description |
---|
WFSContentDataAccess(WFSClient client)
The WFS capabilities document.
|
Modifier and Type | Method and Description |
---|---|
void |
createSchema(FeatureType featureType)
Creates storage for a new
featureType . |
void |
dispose()
Disposes of this data store and releases any resource that it is using.
|
FeatureSource<FeatureType,Feature> |
getFeatureSource(Name typeName)
Access to the named resource.
|
ServiceInfo |
getInfo()
Information about this service.
|
List<Name> |
getNames()
Populates the names map and returns a list of names.
|
String |
getNamespaceURI()
The namespace URL of the datastore.
|
QName |
getRemoteTypeName(Name localTypeName)
Look up a QName based on a given Name.
|
FeatureType |
getSchema(Name name)
Description of the named resource.
|
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 |
setCacheLocation(File cacheLocation)
Sets the location of the cache folder to be used by app-schema-resolver.
|
void |
setNamespaceURI(String namespaceURI)
Sets the namespace URI of the datastore.
|
void |
updateSchema(Name typeName,
FeatureType featureType)
Used to update a schema in place.
|
protected String namespaceURI
public WFSContentDataAccess(WFSClient client)
capabilities
- public String getNamespaceURI()
null
.public void setNamespaceURI(String namespaceURI)
This will be used to qualify the entries or types of the datastore.
namespaceURI
- The namespace URI, may be null
.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<FeatureType,Feature>
public void createSchema(FeatureType featureType) throws IOException
DataAccess
featureType
.
The provided featureType
we be accessable by the typeName provided by
featureType.getTypeName().
createSchema
in interface DataAccess<FeatureType,Feature>
featureType
- FetureType to add to DataStoreIOException
- If featureType cannot be createdpublic void updateSchema(Name typeName, FeatureType featureType) throws IOException
DataAccess
This functionality is similar to an "alter table" statement in SQL. Implementation is optional; it may not be supported by all servers or files.
updateSchema
in interface DataAccess<FeatureType,Feature>
IOException
- if the operation failedpublic List<Name> getNames() throws IOException
getNames
in interface DataAccess<FeatureType,Feature>
IOException
public QName getRemoteTypeName(Name localTypeName) throws IOException
localTypeName
- The local type name whose QName equivalent you'd like.IOException
public FeatureType getSchema(Name name) throws IOException
DataAccess
The FeatureType returned describes the contents being published. For additional metadata please review getInfo( Name ).
getSchema
in interface DataAccess<FeatureType,Feature>
name
- Type name a the resource from getNames()IOException
public void setCacheLocation(File cacheLocation)
cacheLocation
- the folder to use as the cache.public FeatureSource<FeatureType,Feature> getFeatureSource(Name typeName) throws IOException
DataAccess
The level of access is represented by the instance of the FeatureSource being returned.
Formally:
getFeatureSource
in interface DataAccess<FeatureType,Feature>
IOException
public void dispose()
DataAccess
A DataStore
cannot be used after dispose
has been called,
neither can any data access object it helped create, such as FeatureReader
, FeatureSource
or FeatureCollection
.
This operation can be called more than once without side effects.
There is no thread safety assurance associated with this method. For example, client code will have to make sure this method is not called while retrieving/saving data from/to the storage, or be prepared for the consequences.
dispose
in interface DataAccess<FeatureType,Feature>
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<FeatureType,Feature>
IOException
- if the operation failedCopyright © 1996–2019 Geotools. All rights reserved.