Package org.gvsig.fmap.dal.store.jdbc
Interface JDBCServerExplorer
- All Superinterfaces:
DataFactoryUnit,DataServerExplorer,DataServerExplorer_v2,org.gvsig.tools.dispose.Disposable,org.gvsig.tools.util.PropertiesSupport
- All Known Subinterfaces:
JDBCServerExplorer
-
Field Summary
Fields inherited from interface org.gvsig.fmap.dal.DataServerExplorer
FILESYSTEM_SERVER_EXPLORER_NAME, MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(String providerName, NewDataStoreParameters ndsp, boolean overwrite) Creates a new DataStore in this server.booleancanAdd()Indicates whether this DataServerExplorer can create a new DataStore in the server.Return the list of provider names that this server allow.Returns the DataServerExplorer's namelist(int mode) Provides a list of available stores in the server of a type.open(DataStoreParameters dsp) Open a store defined bydspvoidRemoves a store from the server given its DataStoreParameters.voidupdateTableStatistics(String database, String schema, String table) Methods inherited from interface org.gvsig.fmap.dal.DataServerExplorer
canAdd, exists, getAddParameters, getParameters, getResourcePath, getResourcesStorage, getResourcesStorage, getResourcesStorage, listMethods inherited from interface org.gvsig.fmap.dal.DataServerExplorer_v2
close, createSQLBuilder, openMethods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface org.gvsig.tools.util.PropertiesSupport
getProperties, getProperty, setProperty
-
Method Details
-
add
boolean add(String providerName, NewDataStoreParameters ndsp, boolean overwrite) throws DataException Description copied from interface:DataServerExplorerCreates a new DataStore in this server.- Specified by:
addin interfaceDataServerExplorer- Parameters:
providerName-ndsp- , an instance of DataStoreParameters fromDataServerExplorer.getAddParameters(String)that describes the new DataStore.overwrite- if the store already exists- Returns:
- true if the DataStoreParameters were successfully added, false otherwise.
- Throws:
DataException
-
canAdd
boolean canAdd()Description copied from interface:DataServerExplorerIndicates whether this DataServerExplorer can create a new DataStore in the server.- Specified by:
canAddin interfaceDataServerExplorer- Returns:
- true if this DataServerExplorer can be created or false otherwise.
-
get
- Specified by:
getin interfaceDataServerExplorer- Throws:
DataException
-
getAddParameters
- Throws:
DataException
-
getDataStoreProviderNames
Description copied from interface:DataServerExplorerReturn the list of provider names that this server allow.- Specified by:
getDataStoreProviderNamesin interfaceDataServerExplorer- Returns:
- List of provider names
-
getFeatureType
- Throws:
DataException
-
getOpenParameters
- Throws:
DataException
-
getProviderName
String getProviderName()Description copied from interface:DataServerExplorerReturns the DataServerExplorer's name- Specified by:
getProviderNamein interfaceDataServerExplorer- Returns:
- String containing this DataServerExplorer's name
-
getStoreName
String getStoreName() -
list
Description copied from interface:DataServerExplorerProvides a list of available stores in the server of a type.- Specified by:
listin interfaceDataServerExplorer- Parameters:
mode- , filter store from a type:DataServerExplorer.MODE_ALL,DataServerExplorer.MODE_FEATURE,,invalid reference
#MODE_FEATURE_GEOMETRYDataServerExplorer.MODE_RASTER- Returns:
- list of DataStoreParameters
- Throws:
DataException
-
open
Description copied from interface:DataServerExplorer_v2Open a store defined bydsp- Specified by:
openin interfaceDataServerExplorer_v2- Parameters:
dsp-- Returns:
- Throws:
DataException
-
remove
Description copied from interface:DataServerExplorerRemoves a store from the server given its DataStoreParameters. If the store is a file then this method deletes the file, if it is a table in a database then this method drops the table, and so on.- Specified by:
removein interfaceDataServerExplorer- Parameters:
dsp-- Throws:
RemoveException
-
updateTableStatistics
- Throws:
JDBCException
-
execute
-