public class JDBCServerExplorer extends AbstractDBServerExplorer implements JDBCHelperUser
| Modifier and Type | Field and Description |
|---|---|
protected JDBCHelper |
helper |
static java.lang.String |
NAME |
MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER| Constructor and Description |
|---|
JDBCServerExplorer(JDBCServerExplorerParameters parameters,
DataServerExplorerProviderServices services) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.String providerName,
NewDataStoreParameters ndsp,
boolean overwrite)
Creates a new DataStore in this server.
|
boolean |
canAdd()
Indicates whether this DataServerExplorer can create a new DataStore in the
server.
|
protected void |
checkIsMine(DataStoreParameters dsp) |
void |
close()
Close connection to the server
|
void |
closeDone()
Called when the resource was close
|
boolean |
closeResourceRequested(ResourceProvider resource) |
protected boolean |
compare(java.lang.Object str1,
java.lang.Object str2) |
protected JDBCHelper |
createHelper() |
protected JDBCStoreParameters |
createStoreParams() |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
DataStoreParameters |
get(java.lang.String name) |
NewDataStoreParameters |
getAddParameters()
Return a instance of
NewDataStoreParameters to fill |
java.util.List |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
FeatureType |
getFeatureType(DataStoreParameters dsp)
Return the
FeatureType of the store of dsp store |
protected JDBCHelper |
getHelper() |
protected JDBCServerExplorerParameters |
getJDBCParameters() |
protected DataManagerProviderServices |
getManager() |
DataStoreParameters |
getOpenParameters() |
java.lang.String |
getProviderName()
Get the user name
|
java.lang.String |
getStoreName()
Return the name of
DataStoreProvider returned by this
ServerExplorer |
boolean |
hasGeometrySupport() |
java.util.List |
list()
Provides a list of available stores in the server.
|
java.util.List |
list(boolean showInformationDBTables) |
java.util.List |
list(int mode)
Provides a list of available stores in the server of a type.
|
java.util.List |
list(int mode,
boolean showInformationDBTables) |
void |
open()
Open connection to the server
|
DataStore |
open(DataStoreParameters dsp)
Open a store defined by
dsp |
void |
opendDone()
Called when the resource was open
|
void |
remove(DataStoreParameters dsp)
Removes a store from the server given its DataStoreParameters.
|
void |
resourceChanged(ResourceProvider resource) |
void |
updateTableStatistics(java.lang.String tableName) |
canAdd, getAddParametersgetParameters, getResourcePath, getServerExplorerProviderServicesdispose, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServerExplorerProviderServicesgetParameters, getResourcePathdisposepublic static final java.lang.String NAME
protected JDBCHelper helper
public JDBCServerExplorer(JDBCServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
InitializeExceptionprotected JDBCServerExplorerParameters getJDBCParameters()
protected JDBCHelper createHelper() throws InitializeException
InitializeExceptionprotected JDBCHelper getHelper()
public java.util.List list()
throws DataException
DataServerExplorerlist in interface DataServerExplorerDataExceptionpublic java.util.List list(boolean showInformationDBTables)
throws DataException
DataExceptionpublic 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_RASTERDataExceptionprotected DataManagerProviderServices getManager()
public boolean hasGeometrySupport()
public boolean closeResourceRequested(ResourceProvider resource)
closeResourceRequested in interface ResourceConsumerpublic void resourceChanged(ResourceProvider resource)
resourceChanged in interface ResourceConsumerpublic void remove(DataStoreParameters dsp) throws RemoveException
DataServerExplorerremove in interface DataServerExplorerRemoveExceptionpublic DataStoreParameters getOpenParameters() throws DataException
DataExceptionpublic NewDataStoreParameters getAddParameters() throws DataException
DBServerExplorerNewDataStoreParameters to fillgetAddParameters in interface DBServerExplorerDataExceptionpublic void closeDone()
throws DataException
JDBCHelperUsercloseDone in interface JDBCHelperUserDataExceptionpublic void opendDone()
throws DataException
JDBCHelperUseropendDone in interface JDBCHelperUserDataExceptionpublic DataStore open(DataStoreParameters dsp) throws DataException
DBServerExplorerdspopen in interface DBServerExplorerDataExceptionprotected void checkIsMine(DataStoreParameters dsp)
protected boolean compare(java.lang.Object str1,
java.lang.Object str2)
protected JDBCStoreParameters createStoreParams() throws InitializeException, ProviderNotRegisteredException
public java.util.List list(int mode,
boolean showInformationDBTables)
throws DataException
DataExceptionpublic void open()
throws OpenException
DBServerExploreropen in interface DBServerExplorerOpenExceptionpublic void close()
throws CloseException
DBServerExplorerclose in interface DBServerExplorerCloseExceptionprotected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDataServerExplorerBaseExceptionAbstractDisposable.dispose()public java.lang.String getProviderName()
JDBCHelperUsergetProviderName in interface DataServerExplorergetProviderName in interface JDBCHelperUserpublic java.lang.String getStoreName()
AbstractDBServerExplorerDataStoreProvider returned by this
ServerExplorergetStoreName in class AbstractDBServerExplorerpublic boolean canAdd()
DataServerExplorercanAdd in interface DataServerExplorerpublic FeatureType getFeatureType(DataStoreParameters dsp) throws DataException
DBServerExplorerFeatureType of the store of dsp storegetFeatureType in interface DBServerExplorerDataExceptionpublic boolean add(java.lang.String providerName,
NewDataStoreParameters ndsp,
boolean overwrite)
throws DataException
DataServerExploreradd in interface DataServerExplorerndsp - , an instance of DataStoreParameters from
DataServerExplorer.getAddParameters(String) that
describes the new DataStore.overwrite - if the store already existsDataExceptionpublic java.util.List getDataStoreProviderNames()
DataServerExplorergetDataStoreProviderNames in interface DataServerExplorerpublic void updateTableStatistics(java.lang.String tableName)
throws JDBCExecuteSQLException
JDBCExecuteSQLExceptionpublic DataStoreParameters get(java.lang.String name) throws DataException
get in interface DataServerExplorerget in class AbstractDataServerExplorerDataException