public interface DatabaseWorkspaceManager extends LabeledValue<DatabaseWorkspaceManager>, SymbolTable, SupportTransactions
Modifier and Type | Interface and Description |
---|---|
static interface |
DatabaseWorkspaceManager.DatabaseWorkspaceListener |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_CAN_ANONYMOUS_USER_WRITE_IN_THE_TABLES |
static java.lang.String |
CONFIG_NAME_STORESREPOSITORYID |
static java.lang.String |
CONFIG_NAME_STORESREPOSITORYLABEL |
static java.lang.String |
FIELD_CONFIGURATION_NAME |
static java.lang.String |
FIELD_CONFIGURATION_VALUE |
static java.lang.String |
FIELD_REPOSITORY_EXTRA |
static java.lang.String |
FIELD_REPOSITORY_FLAGS |
static java.lang.String |
FIELD_REPOSITORY_NAME |
static java.lang.String |
FIELD_REPOSITORY_PARAMETERS |
static java.lang.String |
FIELD_RESOURCES_NAME |
static java.lang.String |
FIELD_RESOURCES_RESOURCE |
static int |
TABLE_CONFIGURATION |
static java.lang.String |
TABLE_CONFIGURATION_NAME |
static int |
TABLE_REPOSITORY |
static java.lang.String |
TABLE_REPOSITORY_NAME |
static int |
TABLE_RESOURCES |
static java.lang.String |
TABLE_RESOURCES_NAME |
Modifier and Type | Method and Description |
---|---|
boolean |
canAnonymousUserWriteInTheTables() |
void |
connect() |
void |
create(java.lang.String id,
java.lang.String description)
Create and initialize the tables associated with a gvSIG workspace.
|
void |
createTable(int tableid)
Create the configuration table indicated in the workspace.
|
void |
createTableRepository(java.lang.String tableName) |
void |
createTableResources(java.lang.String tableName) |
void |
disconnect() |
void |
drop() |
void |
dropTable(int tableid)
Remove the indicated configuration table from the workspace.
|
boolean |
existsTable(int tableid)
Check if the indicated configuration table exists in the workspace.
|
java.lang.String |
get(java.lang.String name)
Gets the value of a configuration variable associated with
this work space.
|
ResourcesStorage |
getAlternativeResourcesStorage(java.lang.String tableName)
If the workspace has an alternate resource storage defined, return it.
|
java.io.File |
getBaseFolder() |
java.lang.String |
getId()
Returns the identifier of this workspace.
|
java.lang.String |
getLabel()
Returns the label of this workspace.
|
java.lang.String |
getLabelOrId() |
ResourcesStorage |
getResourcesStorage() |
DataServerExplorer |
getServerExplorer() |
DataServerExplorerParameters |
getServerExplorerParameters() |
StoresRepository |
getStoresRepository()
Gets the repository of data stores associated with this workspace.
|
FeatureStore |
getTable(int tableid)
Gets the data store associated with the indicated configuration table.
|
boolean |
hasAlternativeResourcesStorage() |
boolean |
isConnected() |
static boolean |
isInternalTable(java.lang.String name)
Check if the indicated name corresponds to one of the configuration tables of the workspace.
|
boolean |
isValid()
Returns true if the connection associated with this object refers
to a valid workspace.
|
boolean |
isValidStoresRepository()
Returns true if the connection associated with this object refers
to a valid workspace with a stores-repository.
|
boolean |
set(java.lang.String name,
java.lang.String value)
Assigns the indicated value to the configuration variable.
|
void |
setAlternativeResourcesStorage(java.lang.String resourcesPath) |
void |
setBaseFolder(java.io.File baseFolder) |
boolean |
writeStoresRepositoryEntry(java.lang.String name,
DataStoreParameters parameters)
Add a new data store to the workspace.
|
boolean |
writeStoresRepositoryEntry(java.lang.String name,
DataStoreParameters parameters,
Bitmask mask) |
getValue, label, toString
addSymbolTable, clone, containsSymbolTable, exists, function, functions, getName, isSQLCompatible, localfunctions, localvariables, removeSymbolTable, value, variables
cloneQuietly, cloneQuietly
getTransaction, setTransaction
static final java.lang.String CONFIG_CAN_ANONYMOUS_USER_WRITE_IN_THE_TABLES
static final java.lang.String TABLE_REPOSITORY_NAME
static final java.lang.String TABLE_RESOURCES_NAME
static final java.lang.String TABLE_CONFIGURATION_NAME
static final java.lang.String FIELD_RESOURCES_NAME
static final java.lang.String FIELD_RESOURCES_RESOURCE
static final java.lang.String FIELD_REPOSITORY_NAME
static final java.lang.String FIELD_REPOSITORY_PARAMETERS
static final java.lang.String FIELD_REPOSITORY_FLAGS
static final java.lang.String FIELD_REPOSITORY_EXTRA
static final java.lang.String FIELD_CONFIGURATION_NAME
static final java.lang.String FIELD_CONFIGURATION_VALUE
static final int TABLE_RESOURCES
static final int TABLE_REPOSITORY
static final int TABLE_CONFIGURATION
static final java.lang.String CONFIG_NAME_STORESREPOSITORYID
static final java.lang.String CONFIG_NAME_STORESREPOSITORYLABEL
static boolean isInternalTable(java.lang.String name)
name
- to check.java.lang.String getId()
DataServerExplorer getServerExplorer()
DataServerExplorerParameters getServerExplorerParameters()
java.lang.String getLabel()
getLabel
in interface LabeledValue<DatabaseWorkspaceManager>
java.lang.String get(java.lang.String name)
name
- of the variable to consultboolean set(java.lang.String name, java.lang.String value)
name
- of the variable.value
- value to set.StoresRepository getStoresRepository()
boolean writeStoresRepositoryEntry(java.lang.String name, DataStoreParameters parameters)
name
- of the data store.parameters
- to open the data store.boolean writeStoresRepositoryEntry(java.lang.String name, DataStoreParameters parameters, Bitmask mask)
boolean canAnonymousUserWriteInTheTables()
boolean existsTable(int tableid)
tableid
- void createTable(int tableid)
tableid
- identifier of the configuration table to create.void dropTable(int tableid)
tableid
- identifier of the configuration table to remove.FeatureStore getTable(int tableid)
tableid
- identifier of the configuration table to get.boolean isValid()
boolean isValidStoresRepository()
ResourcesStorage getAlternativeResourcesStorage(java.lang.String tableName)
tableName
- boolean hasAlternativeResourcesStorage()
void setAlternativeResourcesStorage(java.lang.String resourcesPath)
void create(java.lang.String id, java.lang.String description)
id
- of the workspacedescription
- of the workspacevoid drop()
java.io.File getBaseFolder()
void setBaseFolder(java.io.File baseFolder)
ResourcesStorage getResourcesStorage()
void connect()
void disconnect()
void createTableRepository(java.lang.String tableName)
void createTableResources(java.lang.String tableName)
boolean isConnected()
java.lang.String getLabelOrId()