Class JDBCServerExplorerBase

java.lang.Object
org.gvsig.tools.dispose.impl.AbstractDisposable
org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
org.gvsig.fmap.dal.serverexplorer.db.spi.AbstractDBServerExplorer
org.gvsig.fmap.dal.store.jdbc2.spi.JDBCServerExplorerBase
All Implemented Interfaces:
org.gvsig.fmap.dal.DataFactoryUnit, org.gvsig.fmap.dal.DataServerExplorer, org.gvsig.fmap.dal.DataServerExplorer_v2, org.gvsig.fmap.dal.resource.spi.ResourceConsumer, org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorer, org.gvsig.fmap.dal.spi.DataServerExplorerProvider, org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer, org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer, org.gvsig.fmap.dal.SupportTransactions, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.util.PropertiesSupport

public class JDBCServerExplorerBase extends org.gvsig.fmap.dal.serverexplorer.db.spi.AbstractDBServerExplorer implements org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer, org.gvsig.fmap.dal.SupportTransactions
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected JDBCHelper
     

    Fields inherited from class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer

    LOGGER

    Fields inherited from interface org.gvsig.fmap.dal.DataServerExplorer

    FILESYSTEM_SERVER_EXPLORER_NAME, MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER

    Fields inherited from interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer

    QUERY_DONT_ADD_PRIMARY_KEY_IN_THE_ORDER, SHOW_TABLES, SHOW_TABLES_AND_VIEWS, SHOW_VIEWS
  • Constructor Summary

    Constructors
    Constructor
    Description
    JDBCServerExplorerBase(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters parameters, org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices services, JDBCHelper helper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(String providerName, org.gvsig.fmap.dal.NewDataStoreParameters theParams, boolean overwrite)
     
    buildKeyForCachedTables(int mode, org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params, boolean informationTables, int tablesOrViews)
     
    boolean
     
    protected void
    checkIsMine(org.gvsig.fmap.dal.DataStoreParameters dsp)
     
    void
     
    boolean
    closeResourceRequested(org.gvsig.fmap.dal.resource.spi.ResourceProvider resource)
     
    org.gvsig.fmap.dal.SQLBuilder
     
    protected void
     
    void
     
     
    boolean
     
    boolean
    exists(org.gvsig.fmap.dal.DataStoreParameters parameters)
     
    org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters
    get(String name)
     
    org.gvsig.fmap.dal.store.jdbc.JDBCNewStoreParameters
     
    org.gvsig.fmap.dal.NewDataStoreParameters
     
     
    getCreateTableSQLs(String databaseName, String schemaName, String tableName, org.gvsig.fmap.dal.feature.FeatureType type)
     
     
    org.gvsig.fmap.dal.feature.FeatureType
    getFeatureType(org.gvsig.fmap.dal.DataStoreParameters theParams)
     
    protected JDBCHelper
     
    protected org.gvsig.tools.resourcesstorage.ResourcesStorage
    getLocalResourcesStorage(org.gvsig.fmap.dal.DataStoreParameters parameters, String storeName)
     
    protected org.gvsig.fmap.dal.spi.DataManagerProviderServices
     
    org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters
     
     
    org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters
     
     
    org.gvsig.tools.resourcesstorage.ResourcesStorage
     
    org.gvsig.tools.resourcesstorage.ResourcesStorage
     
    org.gvsig.tools.resourcesstorage.ResourcesStorage
    getResourcesStorage(org.gvsig.fmap.dal.DataStore dataStore)
     
    org.gvsig.tools.resourcesstorage.ResourcesStorage
    getResourcesStorage(org.gvsig.fmap.dal.DataStoreParameters parameters)
     
     
    org.gvsig.fmap.dal.DataTransaction
     
    list(int mode)
     
    list(int mode, int tablesOrViews)
     
    void
     
    org.gvsig.fmap.dal.DataStore
    open(String tableName)
     
    org.gvsig.fmap.dal.DataStore
    open(org.gvsig.fmap.dal.DataStoreParameters params)
     
    void
    remove(org.gvsig.fmap.dal.DataStoreParameters theParams)
     
    void
    resourceChanged(org.gvsig.fmap.dal.resource.spi.ResourceProvider resource)
     
    void
    setCustomResources(String tableName, String resourcesTableName)
     
    void
    setCustomResources(String tableName, String resourcesTableName, boolean readonly)
     
    void
    setTransaction(org.gvsig.fmap.dal.DataTransaction transaction)
     
    void
    updateTableStatistics(String database, String schema, String table)
     

    Methods inherited from class org.gvsig.fmap.dal.serverexplorer.db.spi.AbstractDBServerExplorer

    canAdd, list

    Methods inherited from class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer

    getProperties, getProperty, getResourcePath, getServerExplorerProviderServices, setProperty

    Methods inherited from class org.gvsig.tools.dispose.impl.AbstractDisposable

    dispose, dispose

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gvsig.fmap.dal.DataServerExplorer

    canAdd, getResourcePath, list

    Methods inherited from interface org.gvsig.fmap.dal.spi.DataServerExplorerProvider

    getServerExplorerProviderServices

    Methods inherited from interface org.gvsig.tools.dispose.Disposable

    dispose

    Methods inherited from interface org.gvsig.tools.util.PropertiesSupport

    getProperties, getProperty, setProperty
  • Field Details

  • Constructor Details

    • JDBCServerExplorerBase

      public JDBCServerExplorerBase(org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters parameters, org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices services, JDBCHelper helper) throws org.gvsig.fmap.dal.exception.InitializeException
      Throws:
      org.gvsig.fmap.dal.exception.InitializeException
  • Method Details

    • getProviderName

      public String getProviderName()
      Specified by:
      getProviderName in interface org.gvsig.fmap.dal.DataServerExplorer
      Specified by:
      getProviderName in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      getProviderName in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • getStoreName

      public String getStoreName()
      Specified by:
      getStoreName in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      getStoreName in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Specified by:
      getStoreName in class org.gvsig.fmap.dal.serverexplorer.db.spi.AbstractDBServerExplorer
    • getManager

      protected org.gvsig.fmap.dal.spi.DataManagerProviderServices getManager()
    • getParameters

      public org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters getParameters()
      Specified by:
      getParameters in interface org.gvsig.fmap.dal.DataServerExplorer
      Specified by:
      getParameters in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Overrides:
      getParameters in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
    • closeResourceRequested

      public boolean closeResourceRequested(org.gvsig.fmap.dal.resource.spi.ResourceProvider resource)
      Specified by:
      closeResourceRequested in interface org.gvsig.fmap.dal.resource.spi.ResourceConsumer
    • resourceChanged

      public void resourceChanged(org.gvsig.fmap.dal.resource.spi.ResourceProvider resource)
      Specified by:
      resourceChanged in interface org.gvsig.fmap.dal.resource.spi.ResourceConsumer
    • getHelper

      protected JDBCHelper getHelper()
    • getOperations

      protected OperationsFactory getOperations()
    • open

      public org.gvsig.fmap.dal.DataStore open(org.gvsig.fmap.dal.DataStoreParameters params) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      open in interface org.gvsig.fmap.dal.DataServerExplorer_v2
      Specified by:
      open in interface org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorer
      Specified by:
      open in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      open in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Overrides:
      open in class org.gvsig.fmap.dal.serverexplorer.db.spi.AbstractDBServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • open

      public org.gvsig.fmap.dal.DataStore open(String tableName) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      open in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • list

      public List list(int mode) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      list in interface org.gvsig.fmap.dal.DataServerExplorer
      Specified by:
      list in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      list in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • list

      public List list(int mode, int tablesOrViews) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      list in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • buildKeyForCachedTables

      public String buildKeyForCachedTables(int mode, org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters params, boolean informationTables, int tablesOrViews)
    • remove

      public void remove(org.gvsig.fmap.dal.DataStoreParameters theParams) throws org.gvsig.fmap.dal.exception.RemoveException
      Specified by:
      remove in interface org.gvsig.fmap.dal.DataServerExplorer
      Specified by:
      remove in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      remove in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.RemoveException
    • getOpenParameters

      public org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters getOpenParameters() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getOpenParameters in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      getOpenParameters in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getAddParameters

      public org.gvsig.fmap.dal.NewDataStoreParameters getAddParameters(String storeName) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getAddParameters in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      getAddParameters in class org.gvsig.fmap.dal.serverexplorer.db.spi.AbstractDBServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getAddParameters

      public org.gvsig.fmap.dal.store.jdbc.JDBCNewStoreParameters getAddParameters() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getAddParameters in interface org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorer
      Specified by:
      getAddParameters in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      getAddParameters in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • checkIsMine

      protected void checkIsMine(org.gvsig.fmap.dal.DataStoreParameters dsp)
    • open

      public void open() throws org.gvsig.fmap.dal.exception.OpenException
      Specified by:
      open in interface org.gvsig.fmap.dal.DataServerExplorer_v2
      Specified by:
      open in interface org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorer
      Overrides:
      open in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.OpenException
    • close

      public void close() throws org.gvsig.fmap.dal.exception.CloseException
      Specified by:
      close in interface org.gvsig.fmap.dal.DataServerExplorer_v2
      Specified by:
      close in interface org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorer
      Overrides:
      close in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.CloseException
    • doDispose

      protected void doDispose() throws org.gvsig.tools.exception.BaseException
      Overrides:
      doDispose in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.tools.exception.BaseException
    • canAdd

      public boolean canAdd()
      Specified by:
      canAdd in interface org.gvsig.fmap.dal.DataServerExplorer
      Specified by:
      canAdd in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      canAdd in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • getFeatureType

      public org.gvsig.fmap.dal.feature.FeatureType getFeatureType(org.gvsig.fmap.dal.DataStoreParameters theParams) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getFeatureType in interface org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorer
      Specified by:
      getFeatureType in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      getFeatureType in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • add

      public boolean add(String providerName, org.gvsig.fmap.dal.NewDataStoreParameters theParams, boolean overwrite) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      add in interface org.gvsig.fmap.dal.DataServerExplorer
      Specified by:
      add in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      add in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • dropCaches

      public void dropCaches()
      Specified by:
      dropCaches in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • getDataStoreProviderNames

      public List getDataStoreProviderNames()
      Specified by:
      getDataStoreProviderNames in interface org.gvsig.fmap.dal.DataServerExplorer
      Specified by:
      getDataStoreProviderNames in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      getDataStoreProviderNames in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • updateTableStatistics

      public void updateTableStatistics(String database, String schema, String table) throws JDBCExecuteSQLException
      Specified by:
      updateTableStatistics in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      updateTableStatistics in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      JDBCExecuteSQLException
    • execute

      public Object execute(String sql)
      Specified by:
      execute in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
    • get

      public org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters get(String name) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      get in interface org.gvsig.fmap.dal.DataServerExplorer
      Specified by:
      get in interface org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer
      Specified by:
      get in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Overrides:
      get in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • createSQLBuilder

      public org.gvsig.fmap.dal.SQLBuilder createSQLBuilder()
      Specified by:
      createSQLBuilder in interface org.gvsig.fmap.dal.DataServerExplorer_v2
      Overrides:
      createSQLBuilder in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
    • getLocalResourcesStorage

      protected org.gvsig.tools.resourcesstorage.ResourcesStorage getLocalResourcesStorage(org.gvsig.fmap.dal.DataStoreParameters parameters, String storeName)
    • getResourcesStorage

      public org.gvsig.tools.resourcesstorage.ResourcesStorage getResourcesStorage(String name)
      Specified by:
      getResourcesStorage in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • getResourcesStorage

      public org.gvsig.tools.resourcesstorage.ResourcesStorage getResourcesStorage()
      Specified by:
      getResourcesStorage in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      getResourcesStorage in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
    • getResourcesStorage

      public org.gvsig.tools.resourcesstorage.ResourcesStorage getResourcesStorage(org.gvsig.fmap.dal.DataStoreParameters parameters)
      Specified by:
      getResourcesStorage in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      getResourcesStorage in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
    • getResourcesStorage

      public org.gvsig.tools.resourcesstorage.ResourcesStorage getResourcesStorage(org.gvsig.fmap.dal.DataStore dataStore)
      Specified by:
      getResourcesStorage in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      getResourcesStorage in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
    • exists

      public boolean exists(org.gvsig.fmap.dal.DataStoreParameters parameters) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      exists in interface org.gvsig.fmap.dal.DataServerExplorer
      Overrides:
      exists in class org.gvsig.fmap.dal.spi.AbstractDataServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setCustomResources

      public void setCustomResources(String tableName, String resourcesTableName)
      Specified by:
      setCustomResources in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • setCustomResources

      public void setCustomResources(String tableName, String resourcesTableName, boolean readonly)
      Specified by:
      setCustomResources in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • exists

      public boolean exists()
      Specified by:
      exists in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • getConnectionProviderStatus

      public String getConnectionProviderStatus()
      Specified by:
      getConnectionProviderStatus in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
    • setTransaction

      public void setTransaction(org.gvsig.fmap.dal.DataTransaction transaction)
      Specified by:
      setTransaction in interface org.gvsig.fmap.dal.SupportTransactions
    • getTransaction

      public org.gvsig.fmap.dal.DataTransaction getTransaction()
      Specified by:
      getTransaction in interface org.gvsig.fmap.dal.SupportTransactions
    • getCreateTableSQLs

      public List<String> getCreateTableSQLs(String databaseName, String schemaName, String tableName, org.gvsig.fmap.dal.feature.FeatureType type) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getCreateTableSQLs in interface org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer
      Throws:
      org.gvsig.fmap.dal.exception.DataException