public class JDBCServerExplorerBase extends AbstractDBServerExplorer implements JDBCServerExplorer
Modifier and Type | Field and Description |
---|---|
protected JDBCHelper |
helper |
MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER
Constructor and Description |
---|
JDBCServerExplorerBase(JDBCServerExplorerParameters parameters,
DataServerExplorerProviderServices services,
JDBCHelper helper) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(String providerName,
NewDataStoreParameters theParams,
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
|
boolean |
closeResourceRequested(ResourceProvider resource) |
SQLBuilder |
createSQLBuilder() |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
void |
execute(String sql) |
DataStoreParameters |
get(String name) |
JDBCNewStoreParameters |
getAddParameters()
Return a instance of
NewDataStoreParameters to fill |
List |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
FeatureType |
getFeatureType(DataStoreParameters theParams)
Return the
FeatureType of the store of dsp store |
protected JDBCHelper |
getHelper() |
protected DataManagerProviderServices |
getManager() |
JDBCStoreParameters |
getOpenParameters() |
protected OperationsFactory |
getOperations() |
JDBCServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
String |
getProviderName()
Returns the DataServerExplorer's name
|
String |
getStoreName()
Return the name of
DataStoreProvider returned by this
ServerExplorer |
List |
list(int mode)
Provides a list of available stores in the server of a type.
|
void |
open()
Open connection to the server
|
DataStore |
open(DataStoreParameters params)
Open a store defined by
dsp |
void |
remove(DataStoreParameters theParams)
Removes a store from the server given its DataStoreParameters.
|
void |
resourceChanged(ResourceProvider resource) |
void |
updateTableStatistics(String database,
String schema,
String table) |
canAdd, getAddParameters, list
getResourcePath, getServerExplorerProviderServices
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canAdd, getAddParameters, getResourcePath, list
dispose
getServerExplorerProviderServices
protected JDBCHelper helper
public JDBCServerExplorerBase(JDBCServerExplorerParameters parameters, DataServerExplorerProviderServices services, JDBCHelper helper) throws InitializeException
InitializeException
public String getProviderName()
DataServerExplorer
getProviderName
in interface DataServerExplorer
getProviderName
in interface JDBCServerExplorer
public String getStoreName()
AbstractDBServerExplorer
DataStoreProvider
returned by this
ServerExplorergetStoreName
in interface JDBCServerExplorer
getStoreName
in class AbstractDBServerExplorer
protected DataManagerProviderServices getManager()
public JDBCServerExplorerParameters getParameters()
DataServerExplorer
getParameters
in interface DataServerExplorer
getParameters
in class AbstractDataServerExplorer
public boolean closeResourceRequested(ResourceProvider resource)
closeResourceRequested
in interface ResourceConsumer
public void resourceChanged(ResourceProvider resource)
resourceChanged
in interface ResourceConsumer
protected JDBCHelper getHelper()
protected OperationsFactory getOperations()
public DataStore open(DataStoreParameters params) throws DataException
DBServerExplorer
dsp
open
in interface DBServerExplorer
open
in interface JDBCServerExplorer
open
in class AbstractDBServerExplorer
DataException
public List list(int mode) throws DataException
DataServerExplorer
list
in interface DataServerExplorer
list
in interface JDBCServerExplorer
mode
- , filter store from a type: DataServerExplorer.MODE_ALL
,
DataServerExplorer.MODE_FEATURE
, #MODE_FEATURE_GEOMETRY
,
DataServerExplorer.MODE_RASTER
DataException
public void remove(DataStoreParameters theParams) throws RemoveException
DataServerExplorer
remove
in interface DataServerExplorer
remove
in interface JDBCServerExplorer
RemoveException
public JDBCStoreParameters getOpenParameters() throws DataException
getOpenParameters
in interface JDBCServerExplorer
DataException
public JDBCNewStoreParameters getAddParameters() throws DataException
DBServerExplorer
NewDataStoreParameters
to fillgetAddParameters
in interface DBServerExplorer
getAddParameters
in interface JDBCServerExplorer
DataException
protected void checkIsMine(DataStoreParameters dsp)
public void open() throws OpenException
DBServerExplorer
open
in interface DBServerExplorer
OpenException
public void close() throws CloseException
DBServerExplorer
close
in interface DBServerExplorer
CloseException
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDataServerExplorer
BaseException
AbstractDisposable.dispose()
public boolean canAdd()
DataServerExplorer
canAdd
in interface DataServerExplorer
canAdd
in interface JDBCServerExplorer
public FeatureType getFeatureType(DataStoreParameters theParams) throws DataException
DBServerExplorer
FeatureType
of the store of dsp
storegetFeatureType
in interface DBServerExplorer
getFeatureType
in interface JDBCServerExplorer
DataException
public boolean add(String providerName, NewDataStoreParameters theParams, boolean overwrite) throws DataException
DataServerExplorer
add
in interface DataServerExplorer
add
in interface JDBCServerExplorer
theParams
- , an instance of DataStoreParameters from
DataServerExplorer.getAddParameters(String)
that
describes the new DataStore.overwrite
- if the store already existsDataException
public List getDataStoreProviderNames()
DataServerExplorer
getDataStoreProviderNames
in interface DataServerExplorer
getDataStoreProviderNames
in interface JDBCServerExplorer
public void updateTableStatistics(String database, String schema, String table) throws JDBCExecuteSQLException
updateTableStatistics
in interface JDBCServerExplorer
JDBCExecuteSQLException
public void execute(String sql)
execute
in interface JDBCServerExplorer
public DataStoreParameters get(String name) throws DataException
get
in interface DataServerExplorer
get
in interface JDBCServerExplorer
get
in class AbstractDataServerExplorer
DataException
public SQLBuilder createSQLBuilder()
createSQLBuilder
in interface DataServerExplorer_v2
createSQLBuilder
in class AbstractDataServerExplorer