public interface DataManager extends Services, PropertiesSupport
DataServerExplorer
(s),
DataStore
(s), Evaluator
(s) and FeatureIndex
(es).ResourceManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CREATE_STORE_AUTHORIZATION |
static java.lang.String |
DAL_FEATURETYPE_MODE_EDIT |
static java.lang.String |
DAL_FEATURETYPE_MODE_EDIT_MSG |
static java.lang.String |
DAL_PREFERRED_COLUMNS |
static java.lang.String |
DAL_STORE_ENVELOPE |
static java.lang.String |
DAL_SYMBOL_TABLE |
static java.lang.String |
DAL_USE_LABELS |
static java.lang.String |
DAL_USE_LARGE_SELECTION |
static java.lang.String |
FUNCTION_CREATE_IN_MEMORY_TABLE |
static java.lang.String |
FUNCTION_CREATE_TABLE |
static java.lang.String |
FUNCTION_CREATE_TABLE_STRUCTURE |
static java.lang.String |
FUNCTION_CURRENT_ROW |
static java.lang.String |
FUNCTION_CURRENT_STORE |
static java.lang.String |
FUNCTION_EXECUTESQL |
static java.lang.String |
FUNCTION_EXISTS |
static java.lang.String |
FUNCTION_EXISTS_TABLE |
static java.lang.String |
FUNCTION_FOREIGN_VALUE |
static java.lang.String |
FUNCTION_FOREING_VALUE
Deprecated.
|
static java.lang.String |
FUNCTION_GEOMETRY |
static java.lang.String |
FUNCTION_INSERT_INTO_TABLE |
static java.lang.String |
FUNCTION_ISSELECTED_CURRENT_ROW |
static java.lang.String |
FUNCTION_ROW_TAG |
static java.lang.String |
FUNCTION_SELECT |
static java.lang.String |
FUNCTION_SELECT_COUNT |
static java.lang.String |
FUNCTION_SELECT_COUNT_FROM_SELECTION |
static java.lang.String |
FUNCTION_SELECT_FROM_SELECTION |
static java.lang.String |
FUNCTION_SET_ROW_TAG |
static java.lang.String |
FUNCTION_UPDATE |
static java.lang.String |
READ_STORE_AUTHORIZATION |
static int |
RECOMENDED_SIZE_FOR_CLOB |
static int |
USE_LABELS_BOTH |
static int |
USE_LABELS_NO |
static int |
USE_LABELS_YES |
static java.lang.String |
WRITE_STORE_AUTHORIZATION |
Modifier and Type | Method and Description |
---|---|
void |
addDatabaseWorkspace(DatabaseWorkspaceManager DatabaseWorkspace) |
void |
addDatabaseWorkspaceListener(DatabaseWorkspaceManager.DatabaseWorkspaceListener listener) |
void |
addStoreObserver(Observer observer) |
void |
clearAllCachedResources() |
void |
clearAvailableValuesCache() |
DynObject |
createCacheParameters(java.lang.String name)
Returns an instance of
DataServerExplorerParameters corresponding
to the given name used by the cache to create a store to save the
retrieved data. |
DALExpressionBuilder |
createDALExpressionBuilder() |
DatabaseWorkspaceManager |
createDatabaseWorkspaceManager(DataServerExplorerParameters connection) |
DataTypeDetector |
createDataTypeDetector(java.util.Locale locale) |
Evaluator |
createExpresion(Expression expression)
Deprecated.
use createFilter
|
Evaluator |
createExpresion(java.lang.String expression)
Deprecated.
use createFilter
|
ExpressionBuilder |
createExpressionBuilder()
Deprecated.
use ExpressionEvaluatorManager.createExpressionBuilder()
|
EditableFeatureAttributeDescriptor |
createFeatureAttributeDescriptor(java.lang.String name,
int type) |
FeatureAttributeEmulatorExpression |
createFeatureAttributeEmulatorExpression(FeatureType type,
Expression expression) |
FeaturePagingHelper |
createFeaturePagingHelper(FeatureStore featureStore,
FeatureQuery featureQuery,
int pageSize)
Creates a
FeaturePagingHelper to paginate data from a
FeatureStore . |
FeaturePagingHelper |
createFeaturePagingHelper(FeatureStore featureStore,
int pageSize)
Creates a
FeaturePagingHelper to paginate data from a
FeatureStore . |
FeatureRuleExpression |
createFeatureRuleExpression() |
FeatureSymbolTable |
createFeatureSymbolTable() |
FeatureSymbolTable |
createFeatureSymbolTable(java.lang.String name) |
EditableFeatureType |
createFeatureType() |
EditableFeatureType |
createFeatureType(JsonObject json) |
void |
createFileStore(java.lang.String providerName,
NewDataStoreParameters params,
boolean overwrite) |
Evaluator |
createFilter(Expression expression)
Creates an instance of Evaluator that represents the given expression.
|
Evaluator |
createFilter(java.lang.String expression)
Creates an instance of Evaluator that represents the given expression.
|
LabelsCacheForFieldValues |
createLabelsCacheForFieldValues(Invocable labelFormulaProvider,
SimpleTaskStatus status) |
java.util.Map |
createLargeMap() |
java.util.Set |
createLargeSet() |
FeatureStore |
createMemoryStore(java.lang.String autoOrderAttributeName)
Utility method to create the a
FeatureStore based on the
MemoryStoreProvider . |
DataStoreParameters |
createMemoryStoreParameters(java.lang.String autoOrderAttributeName)
Utility method to create the
DataStoreParameters to create a
FeatureStore based on the MemoryStoreProvider . |
NewDataStoreParameters |
createNewStoreParameters(java.lang.String provider) |
NewDataStoreParameters |
createNewStoreParameters(java.lang.String explorer,
java.lang.String provider)
Creates, initializes and returns an instance of NewDataStoreParameters
given the name with which their provider is registered.
|
DataServerExplorer |
createServerExplorer(DataServerExplorerParameters parameters)
Deprecated.
see openServerExplorer
|
DataServerExplorerParameters |
createServerExplorerParameters(java.lang.String name)
Returns an instance of
DataServerExplorerParameters corresponding
to the given name. |
DataStore |
createStore(DataStoreParameters parameters)
Deprecated.
see openStore
|
DataStoreParameters |
createStoreParameters(byte[] data) |
DataStoreParameters |
createStoreParameters(DynStruct struct)
Creates, initializes and fill an instance of DataStoreParameters from the
tags of the DynStruct passed as parameter.
|
DataStoreParameters |
createStoreParameters(java.lang.String name) |
DataStoreParameters |
createStoreParameters(java.lang.String name,
java.lang.Object... arguments)
Creates, initializes and returns an instance of DataStoreParameters given
the name with which their provider is registered.
|
DataStoreParameters |
createStoreParameters(Tags tags) |
DataTransaction |
createTransaction() |
java.lang.String |
createUniqueID()
Return a 35-40 characters unique identifier.
|
java.io.File |
getCacheResourcesFolder() |
byte[] |
getDALBytesFromFeatureType(FeatureType ftype) |
DatabaseWorkspaceManager |
getDatabaseWorkspace(DataServerExplorerParameters params) |
DatabaseWorkspaceManager |
getDatabaseWorkspace(DataStoreParameters params) |
DatabaseWorkspaceManager |
getDatabaseWorkspace(java.lang.String name) |
DataProfile |
getDataProfile(java.lang.String name) |
java.util.List<DataProfile> |
getDataProfiles() |
DataServerExplorerPool |
getDataServerExplorerPool() |
java.util.List<DataType> |
getDataTypes()
Return a list of the DataTypes supported for the type of the feature
attributes.
|
java.lang.String |
getDefaultFeatureIndexProviderName(int dataType)
Returns the default DataIndexProvider name, given a data type.
|
java.util.List<java.lang.String> |
getExplorerProviders()
Returns a list of String containing the names of the available
DataServerExplorer providers.
|
java.util.List |
getFeatureCacheProviders()
Returns a list of String containing the names of the available cache providers.
|
java.util.List<java.lang.String> |
getFeatureIndexProviders()
Returns a list of String containing the names of the available index
providers.
|
Register |
getFeatureIndexRegister() |
java.util.List<EditableFeature> |
getFeaturesFromClipboard(FeatureStore store,
java.util.function.Predicate<FeatureAttributeDescriptor> attrFilter) |
java.util.List<FeatureType> |
getFeatureTypesFromDAL(byte[] daldata) |
java.io.File |
getLocalResourcesFolder() |
java.io.File |
getLocalResourcesFolder(DataServerExplorerParameters parameters) |
long |
getMaxSizeForSmallFeatureSelection() |
OpenErrorHandler |
getOpenErrorHandler() |
java.lang.String |
getServerExplorerFromStore(java.lang.String name) |
Register |
getServerExplorerRegister() |
DataFactory |
getStoreFactory(DataStoreParameters parameters) |
DataStoreProviderFactory |
getStoreProviderFactory(java.lang.String name) |
Register |
getStoreProviderRegister() |
java.util.List |
getStoreProviders()
Returns a list of Strings containing the names of all available DataStore
providers.
|
java.util.List<java.lang.String> |
getStoreProviders(java.lang.String name)
Returns a list of Strings containing the names of all available DataStore
providers for an explorer.
|
Register |
getStoreRegister() |
StoresRepository |
getStoresRepository() |
java.lang.String |
getTemporaryDirectory()
Deprecated.
use FoldersManager of org.gvsig.tools
|
boolean |
isTheOldRasterRegistered() |
void |
newStore(java.lang.String provider,
NewDataStoreParameters parameters,
boolean overwrite) |
void |
newStore(java.lang.String explorer,
java.lang.String provider,
NewDataStoreParameters parameters,
boolean overwrite)
Create a new physical store
|
DataServerExplorer |
openServerExplorer(java.lang.String name,
DataServerExplorerParameters parameters)
Returns an instance of
DataServerExplorer given its parameters. |
DataServerExplorer |
openServerExplorer(java.lang.String explorerName,
java.lang.Object... arguments) |
DataStore |
openStore(DataTransaction transaction,
java.lang.String provider,
DataStoreParameters parameters) |
DataStore |
openStore(DataTransaction transaction,
java.lang.String providerName,
DataStoreParameters parameters,
boolean ignoreDALResource) |
DataStore |
openStore(DynStruct struct) |
DataStore |
openStore(java.lang.String provider,
DataStoreParameters parameters) |
DataStore |
openStore(java.lang.String providerName,
DataStoreParameters parameters,
boolean ignoreDALResource) |
DataStore |
openStore(java.lang.String provider,
DynObject parameters)
Creates, initializes and returns an instance of DataStore given the
DataStoreParameters.
|
DataStore |
openStore(java.lang.String providerName,
java.lang.Object... arguments) |
void |
putFeaturesInClipboard(FeatureSet set) |
void |
registerDataProfile(DataProfile profile) |
void |
registerLargeMap(Factory factory) |
void |
registerLargeSet(Factory factory) |
void |
removeDatabaseWorkspace(DatabaseWorkspaceManager DatabaseWorkspace) |
void |
removeStoreObserver(Observer observer) |
void |
setDataServerExplorerPool(DataServerExplorerPool pool) |
void |
setDefaultFeatureIndexProviderName(int dataType,
java.lang.String name)
Sets the default DataIndexProvider for the given data type.
|
void |
setLocalResourcesFolder(java.io.File resourcesFolder) |
void |
setMaxSizeForSmallFeatureSelection(long size) |
void |
setOpenErrorHandler(OpenErrorHandler handler) |
void |
setResourcesLoader(java.lang.ClassLoader loader) |
void |
setResourcesLoader(java.io.File folder) |
void |
writeDALResource(ResourcesStorage resources,
DataStore store) |
void |
writeDALResource(ResourcesStorage resources,
FeatureType featureType) |
getProperties, getProperty, setProperty
static final int RECOMENDED_SIZE_FOR_CLOB
static final java.lang.String CREATE_STORE_AUTHORIZATION
static final java.lang.String READ_STORE_AUTHORIZATION
static final java.lang.String WRITE_STORE_AUTHORIZATION
static final java.lang.String DAL_SYMBOL_TABLE
@Deprecated static final java.lang.String FUNCTION_FOREING_VALUE
static final java.lang.String FUNCTION_FOREIGN_VALUE
static final java.lang.String FUNCTION_SELECT
static final java.lang.String FUNCTION_UPDATE
static final java.lang.String FUNCTION_SELECT_COUNT
static final java.lang.String FUNCTION_EXISTS
static final java.lang.String FUNCTION_EXISTS_TABLE
static final java.lang.String FUNCTION_ROW_TAG
static final java.lang.String FUNCTION_SET_ROW_TAG
static final java.lang.String FUNCTION_CURRENT_ROW
static final java.lang.String FUNCTION_CURRENT_STORE
static final java.lang.String FUNCTION_ISSELECTED_CURRENT_ROW
static final java.lang.String FUNCTION_GEOMETRY
static final java.lang.String FUNCTION_CREATE_IN_MEMORY_TABLE
static final java.lang.String FUNCTION_INSERT_INTO_TABLE
static final java.lang.String FUNCTION_CREATE_TABLE
static final java.lang.String FUNCTION_CREATE_TABLE_STRUCTURE
static final java.lang.String FUNCTION_SELECT_FROM_SELECTION
static final java.lang.String FUNCTION_SELECT_COUNT_FROM_SELECTION
static final java.lang.String FUNCTION_EXECUTESQL
static final java.lang.String DAL_PREFERRED_COLUMNS
static final java.lang.String DAL_USE_LABELS
static final java.lang.String DAL_USE_LARGE_SELECTION
static final java.lang.String DAL_STORE_ENVELOPE
static final java.lang.String DAL_FEATURETYPE_MODE_EDIT
static final java.lang.String DAL_FEATURETYPE_MODE_EDIT_MSG
static final int USE_LABELS_YES
static final int USE_LABELS_NO
static final int USE_LABELS_BOTH
java.lang.String getTemporaryDirectory()
DataStoreParameters createStoreParameters(java.lang.String name, java.lang.Object... arguments) throws InitializeException, ProviderNotRegisteredException
name
- provider namearguments
- ProviderNotRegisteredException
- if the memory provider is not
registeredInitializeException
- if there is an error initializing the
parameters for the memory providerDataStoreParameters createStoreParameters(java.lang.String name) throws InitializeException, ProviderNotRegisteredException
DataStoreParameters createStoreParameters(byte[] data)
DataStoreParameters createStoreParameters(DynStruct struct) throws InitializeException, ProviderNotRegisteredException
struct
- structure from which tags were created ths parameters.ProviderNotRegisteredException
- if the memory provider is not
registeredInitializeException
- if there is an error initializing the
parameters for the memory providerDataStoreParameters createStoreParameters(Tags tags) throws InitializeException, ProviderNotRegisteredException
NewDataStoreParameters createNewStoreParameters(java.lang.String explorer, java.lang.String provider) throws InitializeException, ProviderNotRegisteredException
explorer
- provider
- InitializeException
ProviderNotRegisteredException
NewDataStoreParameters createNewStoreParameters(java.lang.String provider) throws InitializeException, ProviderNotRegisteredException
DataStore openStore(java.lang.String provider, DynObject parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
provider
- parameters
- parameters used to instantiate and initialize the
DataStoreProviderNotRegisteredException
- if the memory provider is not
registeredInitializeException
- if there is an error initializing the
parameters for the memory providerValidateDataParametersException
- if the parameters to open the
memory based store are not validDataStore openStore(DataTransaction transaction, java.lang.String provider, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataStore openStore(java.lang.String provider, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataStore openStore(java.lang.String providerName, DataStoreParameters parameters, boolean ignoreDALResource) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataStore openStore(DataTransaction transaction, java.lang.String providerName, DataStoreParameters parameters, boolean ignoreDALResource) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataStore openStore(java.lang.String providerName, java.lang.Object... arguments) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataStore openStore(DynStruct struct) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
void newStore(java.lang.String explorer, java.lang.String provider, NewDataStoreParameters parameters, boolean overwrite) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
explorer
- provider
- parameters
- overwrite
- InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
void newStore(java.lang.String provider, NewDataStoreParameters parameters, boolean overwrite) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
java.util.List getStoreProviders()
java.util.List<java.lang.String> getStoreProviders(java.lang.String name)
name
- DataServerExplorerParameters createServerExplorerParameters(java.lang.String name) throws InitializeException, ProviderNotRegisteredException
DataServerExplorerParameters
corresponding
to the given name.name
- name of a registered server explorer providerInitializeException
- if parameter initialization causes an error.ProviderNotRegisteredException
- if could not find a provider by
the given name.DataServerExplorer openServerExplorer(java.lang.String name, DataServerExplorerParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataServerExplorer
given its parameters.name
- parameters
- parameters used to instantiate and initialize the
DataServerExplorer
.DataServerExplorer
.InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
DataServerExplorer openServerExplorer(java.lang.String explorerName, java.lang.Object... arguments) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataServerExplorer createServerExplorer(DataServerExplorerParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
parameters
- InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
DataStore createStore(DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
parameters
- InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
java.util.List<java.lang.String> getExplorerProviders()
Evaluator createExpresion(java.lang.String expression) throws InitializeException
expression
- String containing a CQL expression.InitializeException
Evaluator createExpresion(Expression expression) throws InitializeException
expression
- a Expression with the filterInitializeException
Evaluator createFilter(java.lang.String expression) throws InitializeException
expression
- String containing a CQL expression.InitializeException
Evaluator createFilter(Expression expression) throws InitializeException
expression
- a Expression with the filterInitializeException
java.util.List<java.lang.String> getFeatureIndexProviders()
void setDefaultFeatureIndexProviderName(int dataType, java.lang.String name)
dataType
- one of the data types defined in DataTypes
.name
- Provider's namejava.lang.String getDefaultFeatureIndexProviderName(int dataType)
DataTypes
.dataType
- one of the constants in DataTypes
.FeatureIndexProvider
if there is
anyone available for the given data type.DataStoreParameters createMemoryStoreParameters(java.lang.String autoOrderAttributeName) throws InitializeException
DataStoreParameters
to create a
FeatureStore
based on the MemoryStoreProvider
.autoOrderAttributeName
- the name of the Feature
attribute
to be used to order the store Feature
s by default. Set to null if
you don't want any order by defaultInitializeException
- if there is an error initializing the
parameters for the memory providerFeatureStore createMemoryStore(java.lang.String autoOrderAttributeName) throws InitializeException
FeatureStore
based on the
MemoryStoreProvider
.autoOrderAttributeName
- the name of the Feature
attribute
to be used to order the store Feature
s by default. Set to null if
you don't want any order by defaultInitializeException
- if there is an error initializing the
parameters for the memory providerFeaturePagingHelper createFeaturePagingHelper(FeatureStore featureStore, int pageSize) throws BaseException
FeaturePagingHelper
to paginate data from a
FeatureStore
.featureStore
- to get the Feature
s frompageSize
- the page sizeFeaturePagingHelper
BaseException
- if there is an error creating the helperFeaturePagingHelper createFeaturePagingHelper(FeatureStore featureStore, FeatureQuery featureQuery, int pageSize) throws BaseException
FeaturePagingHelper
to paginate data from a
FeatureStore
.featureStore
- to get the Feature
s fromfeatureQuery
- to filter and/or order the datapageSize
- the page sizeFeaturePagingHelper
BaseException
- if there is an error creating the helpervoid setOpenErrorHandler(OpenErrorHandler handler)
OpenErrorHandler getOpenErrorHandler()
DataStoreProviderFactory getStoreProviderFactory(java.lang.String name)
EditableFeatureType createFeatureType()
EditableFeatureType createFeatureType(JsonObject json)
DataServerExplorerPool getDataServerExplorerPool()
void setDataServerExplorerPool(DataServerExplorerPool pool)
void setResourcesLoader(java.lang.ClassLoader loader)
void setResourcesLoader(java.io.File folder)
java.util.List<DataType> getDataTypes()
Register getStoreRegister()
Register getStoreProviderRegister()
Register getServerExplorerRegister()
Register getFeatureIndexRegister()
ExpressionBuilder createExpressionBuilder()
java.util.List getFeatureCacheProviders()
DynObject createCacheParameters(java.lang.String name) throws InitializeException, ProviderNotRegisteredException
DataServerExplorerParameters
corresponding
to the given name used by the cache to create a store to save the
retrieved data.name
- name of a registered feature cache providerInitializeException
- if parameter initialization causes an error.ProviderNotRegisteredException
- if could not find a cache provider by the given name.void createFileStore(java.lang.String providerName, NewDataStoreParameters params, boolean overwrite) throws DataException
providerName
- params
- overwrite
- DataException
FeatureSymbolTable createFeatureSymbolTable()
FeatureSymbolTable createFeatureSymbolTable(java.lang.String name)
EditableFeatureAttributeDescriptor createFeatureAttributeDescriptor(java.lang.String name, int type)
FeatureAttributeEmulatorExpression createFeatureAttributeEmulatorExpression(FeatureType type, Expression expression)
void registerDataProfile(DataProfile profile)
java.util.List<DataProfile> getDataProfiles()
DataProfile getDataProfile(java.lang.String name)
StoresRepository getStoresRepository()
DatabaseWorkspaceManager createDatabaseWorkspaceManager(DataServerExplorerParameters connection)
void addDatabaseWorkspace(DatabaseWorkspaceManager DatabaseWorkspace)
void removeDatabaseWorkspace(DatabaseWorkspaceManager DatabaseWorkspace)
void addDatabaseWorkspaceListener(DatabaseWorkspaceManager.DatabaseWorkspaceListener listener)
DatabaseWorkspaceManager getDatabaseWorkspace(java.lang.String name)
DatabaseWorkspaceManager getDatabaseWorkspace(DataStoreParameters params)
DatabaseWorkspaceManager getDatabaseWorkspace(DataServerExplorerParameters params)
void writeDALResource(ResourcesStorage resources, DataStore store)
void writeDALResource(ResourcesStorage resources, FeatureType featureType)
java.lang.String createUniqueID()
void clearAvailableValuesCache()
DALExpressionBuilder createDALExpressionBuilder()
boolean isTheOldRasterRegistered()
void addStoreObserver(Observer observer)
void removeStoreObserver(Observer observer)
java.lang.String getServerExplorerFromStore(java.lang.String name)
void setMaxSizeForSmallFeatureSelection(long size)
long getMaxSizeForSmallFeatureSelection()
void registerLargeMap(Factory factory)
void registerLargeSet(Factory factory)
java.util.Map createLargeMap()
java.util.Set createLargeSet()
DataTransaction createTransaction()
void putFeaturesInClipboard(FeatureSet set)
java.util.List<EditableFeature> getFeaturesFromClipboard(FeatureStore store, java.util.function.Predicate<FeatureAttributeDescriptor> attrFilter) throws DataException
DataException
FeatureRuleExpression createFeatureRuleExpression()
DataFactory getStoreFactory(DataStoreParameters parameters)
java.io.File getCacheResourcesFolder()
void clearAllCachedResources()
LabelsCacheForFieldValues createLabelsCacheForFieldValues(Invocable labelFormulaProvider, SimpleTaskStatus status)
java.util.List<FeatureType> getFeatureTypesFromDAL(byte[] daldata)
byte[] getDALBytesFromFeatureType(FeatureType ftype)
DataTypeDetector createDataTypeDetector(java.util.Locale locale)
java.io.File getLocalResourcesFolder()
java.io.File getLocalResourcesFolder(DataServerExplorerParameters parameters)
void setLocalResourcesFolder(java.io.File resourcesFolder)