public class OGRDataExplorer extends AbstractDataServerExplorer implements DataServerExplorerProvider, ResourceConsumer
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
dataSource |
static java.lang.String |
NAME |
protected OGRDataExplorerParameters |
parameters |
protected java.lang.Boolean |
updateSupport |
LOGGERFILESYSTEM_SERVER_EXPLORER_NAME, MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER| Constructor and Description |
|---|
OGRDataExplorer(OGRDataExplorerParameters parameters,
DataServerExplorerProviderServices providerServices) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.String provider,
NewDataStoreParameters parameters,
boolean overwrite)
Creates a new DataStore in this server.
|
boolean |
canAdd()
Indicates whether this DataServerExplorer can create a new DataStore in
the server.
|
boolean |
canAdd(java.lang.String storeName)
Indicates whether this DataServerExplorer can create a new DataStore in
the server, given the store name.
|
boolean |
closeResourceRequested(ResourceProvider resource) |
void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
DataStoreParameters |
get(java.lang.String name) |
NewDataStoreParameters |
getAddParameters(java.lang.String storeName)
Given the store's name, returns its parameters for creation.
|
protected DataSource |
getDataSource() |
java.util.List |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
protected java.util.List<Layer> |
getLayerList() |
DataServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
java.lang.String |
getProviderName()
Returns the DataServerExplorer's name
|
DataServerExplorerProviderServices |
getServerExplorerProviderServices() |
java.util.List |
list()
Provides a list of available stores in the server.
|
java.util.List |
list(int mode)
Provides a list of available stores in the server of a type.
|
void |
remove(DataStoreParameters parameters)
Removes a store from the server given its DataStoreParameters.
|
void |
resourceChanged(ResourceProvider resource) |
close, createSQLBuilder, exists, getProperties, getProperty, getResourcePath, getResourcesStorage, getResourcesStorage, getResourcesStorage, open, open, setPropertydispose, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, getResourcePath, getResourcesStorage, getResourcesStorage, getResourcesStoragedisposepublic static final java.lang.String NAME
protected OGRDataExplorerParameters parameters
protected DataSource dataSource
protected java.lang.Boolean updateSupport
public OGRDataExplorer(OGRDataExplorerParameters parameters, DataServerExplorerProviderServices providerServices) throws InitializeException
parameters - Parameters to open data explorer.providerServices - Available servicesInitializeException - If there is some error initializing this store providerprotected DataSource getDataSource()
throws OGRUnsupportedFormatException
OGRUnsupportedFormatExceptionprotected java.util.List<Layer> getLayerList()
public java.lang.String getProviderName()
DataServerExplorergetProviderName in interface DataServerExplorerpublic boolean canAdd()
DataServerExplorercanAdd in interface DataServerExplorerpublic boolean canAdd(java.lang.String storeName)
throws DataException
DataServerExplorercanAdd in interface DataServerExplorerstoreName - store name.DataExceptionpublic java.util.List list()
throws DataException
DataServerExplorerlist in interface DataServerExplorerDataExceptionpublic java.util.List list(int mode)
throws DataException
DataServerExplorerlist in interface DataServerExplorermode - , filter store from a type: DataServerExplorer.MODE_ALL,
DataServerExplorer.MODE_FEATURE, #MODE_FEATURE_GEOMETRY,
DataServerExplorer.MODE_RASTERDataExceptionpublic boolean add(java.lang.String provider,
NewDataStoreParameters parameters,
boolean overwrite)
throws DataException
DataServerExploreradd in interface DataServerExplorerparameters - , an instance of DataStoreParameters from
DataServerExplorer.getAddParameters(String) that describes the
new DataStore.overwrite - if the store already existsDataExceptionpublic void remove(DataStoreParameters parameters) throws DataException
DataServerExplorerremove in interface DataServerExplorerDataExceptionpublic NewDataStoreParameters getAddParameters(java.lang.String storeName) throws DataException
DataServerExplorergetAddParameters in interface DataServerExplorerDataExceptionpublic DataServerExplorerParameters getParameters()
DataServerExplorergetParameters in interface DataServerExplorergetParameters in class AbstractDataServerExplorerpublic java.util.List getDataStoreProviderNames()
DataServerExplorergetDataStoreProviderNames in interface DataServerExplorerpublic void doDispose()
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDataServerExplorerAbstractDisposable.dispose()public DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices in interface DataServerExplorerProvidergetServerExplorerProviderServices in class AbstractDataServerExplorerpublic boolean closeResourceRequested(ResourceProvider resource)
closeResourceRequested in interface ResourceConsumerpublic void resourceChanged(ResourceProvider resource)
resourceChanged in interface ResourceConsumerpublic DataStoreParameters get(java.lang.String name) throws DataException
get in interface DataServerExplorerget in class AbstractDataServerExplorerDataException