|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataServerExplorer
DataServerExplorer is an abstraction for any type of data server. It allows connecting to the server and browsing its contents. More specifically, this interface provides a list of the available data stores in a server.
Field Summary | |
---|---|
static int |
MODE_ALL
|
static int |
MODE_FEATURE
|
static int |
MODE_GEOMETRY
|
static int |
MODE_RASTER
|
Method Summary | |
---|---|
boolean |
add(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(String storeName)
Indicates whether this DataServerExplorer can create a new DataStore in the server, given the store name. |
NewDataStoreParameters |
getAddParameters(String storeName)
Given the store's name, returns its parameters for creation. |
List |
getDataStoreProviderNames()
Return the list of provider names that this server allow. |
DataServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters |
String |
getProviderName()
Returns the DataServerExplorer's name |
List |
list()
Provides a list of available stores in the server. |
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. |
Methods inherited from interface org.gvsig.tools.dispose.Disposable |
---|
dispose |
Field Detail |
---|
static final int MODE_ALL
static final int MODE_FEATURE
static final int MODE_GEOMETRY
static final int MODE_RASTER
Method Detail |
---|
String getProviderName()
boolean canAdd()
boolean canAdd(String storeName) throws DataException
storeName
- store name.
DataException
List list() throws DataException
DataException
List list(int mode) throws DataException
mode
- , filter store from a type: MODE_ALL
,
MODE_FEATURE
, #MODE_FEATURE_GEOMETRY
,
MODE_RASTER
DataException
boolean add(String provider, NewDataStoreParameters parameters, boolean overwrite) throws DataException
parameters
- , an instance of DataStoreParameters from
getAddParameters(String)
that
describes the new DataStore.overwrite
- if the store already exists
DataException
void remove(DataStoreParameters parameters) throws DataException
parameters
-
DataException
NewDataStoreParameters getAddParameters(String storeName) throws DataException
storeName
-
DataException
DataServerExplorerParameters getParameters()
List getDataStoreProviderNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |