Interface DatabaseWorkspaceManager

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, Iterable<org.gvsig.expressionevaluator.Function>, org.gvsig.tools.util.LabeledValue<DatabaseWorkspaceManager>, SupportTransactions, org.gvsig.expressionevaluator.SymbolTable

public interface DatabaseWorkspaceManager extends org.gvsig.tools.util.LabeledValue<DatabaseWorkspaceManager>, org.gvsig.expressionevaluator.SymbolTable, SupportTransactions
Author:
jjdelcerro
  • Field Details

  • Method Details

    • isInternalTable

      static boolean isInternalTable(String name)
      Check if the indicated name corresponds to one of the configuration tables of the workspace.
      Parameters:
      name - to check.
      Returns:
      true if the name is that of a configuration table.
    • getId

      String getId()
      Returns the identifier of this workspace.
      Returns:
      the id.
    • getServerExplorer

      DataServerExplorer getServerExplorer()
    • getServerExplorerParameters

      DataServerExplorerParameters getServerExplorerParameters()
    • getLabel

      String getLabel()
      Returns the label of this workspace.
      Specified by:
      getLabel in interface org.gvsig.tools.util.LabeledValue<DatabaseWorkspaceManager>
      Returns:
      the label value.
    • get

      String get(String name)
      Gets the value of a configuration variable associated with this work space.
      Parameters:
      name - of the variable to consult
      Returns:
      the value of the variable
    • set

      boolean set(String name, String value)
      Assigns the indicated value to the configuration variable.
      Parameters:
      name - of the variable.
      value - value to set.
      Returns:
      true if can assign the value.
    • getStoresRepository

      StoresRepository getStoresRepository()
      Gets the repository of data stores associated with this workspace.
      Returns:
      the data stores repository.
    • writeStoresRepositoryEntry

      boolean writeStoresRepositoryEntry(String name, DataStoreParameters parameters)
      Add a new data store to the workspace.
      Parameters:
      name - of the data store.
      parameters - to open the data store.
      Returns:
      true if ok.
    • writeStoresRepositoryEntry

      boolean writeStoresRepositoryEntry(String name, DataStoreParameters parameters, org.gvsig.tools.util.Bitmask mask)
    • canAnonymousUserWriteInTheTables

      boolean canAnonymousUserWriteInTheTables()
    • existsTable

      boolean existsTable(int tableid)
      Check if the indicated configuration table exists in the workspace.
      Parameters:
      tableid -
      Returns:
      true if the table exists.
    • createTable

      void createTable(int tableid)
      Create the configuration table indicated in the workspace.
      Parameters:
      tableid - identifier of the configuration table to create.
    • dropTable

      void dropTable(int tableid)
      Remove the indicated configuration table from the workspace.
      Parameters:
      tableid - identifier of the configuration table to remove.
    • getTable

      FeatureStore getTable(int tableid)
      Gets the data store associated with the indicated configuration table.
      Parameters:
      tableid - identifier of the configuration table to get.
      Returns:
      the FeatureStore of the configuration table.
    • isValid

      boolean isValid()
      Returns true if the connection associated with this object refers to a valid workspace. At least the variable "StoresRepository.id" must be defined.
      Returns:
    • isValidStoresRepository

      boolean isValidStoresRepository()
      Returns true if the connection associated with this object refers to a valid workspace with a stores-repository. At least the repositories table must exist and the variable "StoresRepository.id" must be defined.
      Returns:
    • getAlternativeResourcesStorage

      org.gvsig.tools.resourcesstorage.ResourcesStorage getAlternativeResourcesStorage(String tableName)
      If the workspace has an alternate resource storage defined, return it. If don't have it, return null.
      Parameters:
      tableName -
      Returns:
      the alternate resource storage.
    • hasAlternativeResourcesStorage

      boolean hasAlternativeResourcesStorage()
    • setAlternativeResourcesStorage

      void setAlternativeResourcesStorage(String resourcesPath)
    • create

      void create(String id, String description)
      Create and initialize the tables associated with a gvSIG workspace.
      Parameters:
      id - of the workspace
      description - of the workspace
    • drop

      void drop()
    • getBaseFolder

      File getBaseFolder()
    • setBaseFolder

      void setBaseFolder(File baseFolder)
    • getResourcesStorage

      org.gvsig.tools.resourcesstorage.ResourcesStorage getResourcesStorage()
    • connect

      void connect()
    • disconnect

      void disconnect()
    • createTableRepository

      void createTableRepository(String tableName)
    • createTableResources

      void createTableResources(String tableName)
    • isConnected

      boolean isConnected()
    • getLabelOrId

      String getLabelOrId()