public interface DataManager extends Services
DataServerExplorer
(s),
DataStore
(s), Evaluator
(s) and FeatureIndex
(es).ResourceManager
Modifier and Type | Field and Description |
---|---|
static String |
CREATE_STORE_AUTHORIZATION |
static String |
READ_STORE_AUTHORIZATION |
static String |
WRITE_STORE_AUTHORIZATION |
Modifier and Type | Method and Description |
---|---|
DynObject |
createCacheParameters(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. |
Evaluator |
createExpresion(String expression)
Creates an instance of Evaluator that represents the given expression.
|
ExpressionBuilder |
createExpressionBuilder()
Creates a default ExpressionBuilder.
|
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 . |
EditableFeatureType |
createFeatureType() |
void |
createFileStore(String providerName,
NewDataStoreParameters params,
boolean overwrite) |
FeatureStore |
createMemoryStore(String autoOrderAttributeName)
Utility method to create the a
FeatureStore based on the
MemoryStoreProvider . |
DataStoreParameters |
createMemoryStoreParameters(String autoOrderAttributeName)
Utility method to create the
DataStoreParameters to create a
FeatureStore based on the MemoryStoreProvider . |
NewDataStoreParameters |
createNewStoreParameters(String explorer,
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(String name)
Returns an instance of
DataServerExplorerParameters corresponding
to the given name. |
DataStore |
createStore(DataStoreParameters parameters)
Deprecated.
see openStore
|
DataStoreParameters |
createStoreParameters(DynStruct struct)
Creates, initializes and fill an instance of DataStoreParameters from the
tags of the DynStruct passed as parameter.
|
DataStoreParameters |
createStoreParameters(String name)
Creates, initializes and returns an instance of DataStoreParameters given
the name with which their provider is registered.
|
DataStoreParameters |
createStoreParameters(Tags tags) |
DataServerExplorerPool |
getDataServerExplorerPool() |
List<DataType> |
getDataTypes()
Return a list of the DataTypes supported for the type of the feature
attributes.
|
String |
getDefaultFeatureIndexProviderName(int dataType)
Returns the default DataIndexProvider name, given a data type.
|
List<String> |
getExplorerProviders()
Returns a list of String containing the names of the available
DataServerExplorer providers.
|
List |
getFeatureCacheProviders()
Returns a list of String containing the names of the available cache providers.
|
List<String> |
getFeatureIndexProviders()
Returns a list of String containing the names of the available index
providers.
|
Register |
getFeatureIndexRegister() |
OpenErrorHandler |
getOpenErrorHandler() |
Register |
getServerExplorerRegister() |
DataStoreProviderFactory |
getStoreProviderFactory(String name) |
Register |
getStoreProviderRegister() |
List |
getStoreProviders()
Returns a list of Strings containing the names of all available DataStore
providers.
|
List<String> |
getStoreProviders(String name)
Returns a list of Strings containing the names of all available DataStore
providers for an explorer.
|
Register |
getStoreRegister() |
String |
getTemporaryDirectory()
Deprecated.
use FoldersManager of org.gvsig.tools
|
void |
newStore(String explorer,
String provider,
NewDataStoreParameters parameters,
boolean overwrite)
Create a new physical store
|
DataServerExplorer |
openServerExplorer(String name,
DataServerExplorerParameters parameters)
Returns an instance of
DataServerExplorer given its parameters. |
DataServerExplorer |
openServerExplorer(String explorerName,
Object... arguments) |
DataStore |
openStore(DynStruct struct) |
DataStore |
openStore(String provider,
DataStoreParameters parameters) |
DataStore |
openStore(String provider,
DynObject parameters)
Creates, initializes and returns an instance of DataStore given the
DataStoreParameters.
|
DataStore |
openStore(String providerName,
Object... arguments) |
void |
registerDefaultEvaluator(EvaluatorFactory evaluatorFactory)
Registers the default expression evaluator.
|
void |
setDataServerExplorerPool(DataServerExplorerPool pool) |
void |
setDefaultFeatureIndexProviderName(int dataType,
String name)
Sets the default DataIndexProvider for the given data type.
|
void |
setOpenErrorHandler(OpenErrorHandler handler) |
void |
setResourcesLoader(ClassLoader loader) |
void |
setResourcesLoader(File folder) |
static final String CREATE_STORE_AUTHORIZATION
static final String READ_STORE_AUTHORIZATION
static final String WRITE_STORE_AUTHORIZATION
String getTemporaryDirectory()
DataStoreParameters createStoreParameters(String name) throws InitializeException, ProviderNotRegisteredException
name
- provider nameProviderNotRegisteredException
- if the memory provider is not
registeredInitializeException
- if there is an error initializing the
parameters for the memory providerDataStoreParameters 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(String explorer, String provider) throws InitializeException, ProviderNotRegisteredException
explorer
- provider
- InitializeException
ProviderNotRegisteredException
DataStore openStore(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(String provider, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataStore openStore(String providerName, Object... arguments) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataStore openStore(DynStruct struct) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
void newStore(String explorer, String provider, NewDataStoreParameters parameters, boolean overwrite) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
explorer
- provider
- parameters
- overwrite
- InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
List getStoreProviders()
List<String> getStoreProviders(String name)
name
- DataServerExplorerParameters createServerExplorerParameters(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(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(String explorerName, 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
List<String> getExplorerProviders()
void registerDefaultEvaluator(EvaluatorFactory evaluatorFactory)
evaluatorFactory
- Evaluator createExpresion(String expression) throws InitializeException
expression
- String containing a CQL expression.InitializeException
List<String> getFeatureIndexProviders()
void setDefaultFeatureIndexProviderName(int dataType, String name)
dataType
- one of the data types defined in DataTypes
.name
- Provider's nameString getDefaultFeatureIndexProviderName(int dataType)
DataTypes
.dataType
- one of the constants in DataTypes
.FeatureIndexProvider
if there is
anyone available for the given data type.DataStoreParameters createMemoryStoreParameters(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(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(String name)
EditableFeatureType createFeatureType()
DataServerExplorerPool getDataServerExplorerPool()
void setDataServerExplorerPool(DataServerExplorerPool pool)
void setResourcesLoader(ClassLoader loader)
void setResourcesLoader(File folder)
List<DataType> getDataTypes()
Register getStoreRegister()
Register getStoreProviderRegister()
Register getServerExplorerRegister()
Register getFeatureIndexRegister()
ExpressionBuilder createExpressionBuilder()
List getFeatureCacheProviders()
DynObject createCacheParameters(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(String providerName, NewDataStoreParameters params, boolean overwrite) throws DataException
providerName
- params
- overwrite
- DataException