public class DefaultDataManager extends java.lang.Object implements DataManager, DataManagerProviderServices, Services
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_SIZE_FOR_SMALL_FEATURE_SELECTION |
static java.lang.String |
FILESYSTEM_EXPLORER_NAME |
CREATE_STORE_AUTHORIZATION, DAL_FEATURETYPE_MODE_EDIT, DAL_FEATURETYPE_MODE_EDIT_MSG, DAL_PREFERRED_COLUMNS, DAL_STORE_ENVELOPE, DAL_SYMBOL_TABLE, DAL_USE_LABELS, DAL_USE_LARGE_SELECTION, FUNCTION_CREATE_IN_MEMORY_TABLE, FUNCTION_CREATE_TABLE, FUNCTION_CREATE_TABLE_STRUCTURE, FUNCTION_CURRENT_ROW, FUNCTION_CURRENT_STORE, FUNCTION_EXECUTESQL, FUNCTION_EXISTS, FUNCTION_EXISTS_TABLE, FUNCTION_FOREIGN_VALUE, FUNCTION_FOREING_VALUE, FUNCTION_GEOMETRY, FUNCTION_INSERT_INTO_TABLE, FUNCTION_ISSELECTED_CURRENT_ROW, FUNCTION_ROW_TAG, FUNCTION_SELECT, FUNCTION_SELECT_COUNT, FUNCTION_SELECT_COUNT_FROM_SELECTION, FUNCTION_SELECT_FROM_SELECTION, FUNCTION_SET_ROW_TAG, FUNCTION_UPDATE, READ_STORE_AUTHORIZATION, RECOMENDED_SIZE_FOR_CLOB, USE_LABELS_BOTH, USE_LABELS_NO, USE_LABELS_YES, WRITE_STORE_AUTHORIZATION
Constructor and Description |
---|
DefaultDataManager() |
Modifier and Type | Method and Description |
---|---|
void |
addDatabaseWorkspace(DatabaseWorkspaceManager databaseWorkspace) |
void |
addDatabaseWorkspaceListener(DatabaseWorkspaceManager.DatabaseWorkspaceListener listener) |
void |
addObservers(DataStore store) |
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) |
static DefaultEditableFeatureAttributeDescriptor |
createEditableFeatureAttributeDescriptor(FeatureType ftype,
java.lang.String name,
int type) |
static DefaultEditableFeatureAttributeDescriptor |
createEditableFeatureAttributeDescriptor(FeatureType ftype,
java.lang.String name,
int type,
boolean strongChanges) |
Evaluator |
createExpresion(Expression expression)
Deprecated.
|
Evaluator |
createExpresion(java.lang.String expression)
Deprecated.
|
ExpressionBuilder |
createExpressionBuilder()
Creates a default ExpressionBuilder.
|
EditableFeatureAttributeDescriptor |
createFeatureAttributeDescriptor(java.lang.String name,
int type) |
FeatureAttributeEmulatorExpression |
createFeatureAttributeEmulatorExpression(FeatureType type,
Expression expression) |
FeatureCacheProvider |
createFeatureCacheProvider(java.lang.String name,
DynObject parameters) |
FeatureIndexProviderServices |
createFeatureIndexProvider(java.lang.String name,
FeatureStore store,
FeatureType type,
java.lang.String indexName,
FeatureAttributeDescriptor attr)
Returns a DataIndexProvider compatible with the attribute data type.
|
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 providerName) |
NewDataStoreParameters |
createNewStoreParameters(java.lang.String explorerName,
java.lang.String providerName)
Creates, initializes and returns an instance of NewDataStoreParameters
given the name with which their provider is registered.
|
DataStoreProvider |
createProvider(DataStoreProviderServices providerServices,
DataStoreParameters parameters)
Creates a new instance of the provider associated to the passed
parameters.
|
DataServerExplorer |
createServerExplorer(DataServerExplorerParameters parameters)
Deprecated.
see openServerExplorer
|
DataServerExplorerParameters |
createServerExplorerParameters(java.lang.String explorerName)
Returns an instance of
DataServerExplorerParameters corresponding
to the given name. |
DataStore |
createStore(DataStoreParameters parameters)
Deprecated.
use 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 providerName) |
DataStoreParameters |
createStoreParameters(java.lang.String providerName,
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 params) |
long |
getMaxSizeForSmallFeatureSelection() |
OpenErrorHandler |
getOpenErrorHandler() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String name) |
java.net.URL |
getResource(java.lang.Object reourceLoader,
java.lang.String name)
Return the URL associated to the indicated resource.
|
java.io.InputStream |
getResourceAsStream(java.lang.Object reourceLoader,
java.lang.String name)
Return the InputStream associated to the indicated resource.
|
java.lang.String |
getServerExplorerFromStore(java.lang.String name) |
Register |
getServerExplorerRegister() |
DataFactory |
getStoreFactory(DataStoreParameters parameters) |
DataStoreProviderFactory |
getStoreProviderFactory(java.lang.String providerName) |
Register |
getStoreProviderRegister() |
java.util.List<java.lang.String> |
getStoreProviders()
Returns a list of Strings containing the names of all available DataStore
providers.
|
java.util.List<java.lang.String> |
getStoreProviders(java.lang.String explorerName)
Returns a list of Strings containing the names of all available DataStore
providers for an explorer.
|
Register |
getStoreRegister() |
StoresRepository |
getStoresRepository() |
java.lang.String |
getTemporaryDirectory()
Returns the default DAL's temporary directory
|
boolean |
isTheOldRasterRegistered() |
void |
newStore(java.lang.String providerName,
NewDataStoreParameters parameters,
boolean overwrite) |
void |
newStore(java.lang.String explorerName,
java.lang.String providerName,
NewDataStoreParameters parameters,
boolean overwrite)
Create a new physical store
|
DataServerExplorer |
openServerExplorer(java.lang.String explorerName,
DataServerExplorerParameters parameters)
Returns an instance of
DataServerExplorer given its parameters. |
DataServerExplorer |
openServerExplorer(java.lang.String explorerName,
java.lang.Object... arguments) |
DataStore |
openStore(DataStoreParameters parameters,
DataStoreProvider provider) |
DataStore |
openStore(DataTransaction transaction,
java.lang.String providerName,
DataStoreParameters parameters) |
DataStore |
openStore(DataTransaction transaction,
java.lang.String providerName,
DataStoreParameters parameters,
boolean ignoreDALResource) |
DataStore |
openStore(DynStruct struct) |
DataStore |
openStore(java.lang.String providerName,
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 |
registerDefaultRasterStore(java.lang.Class rasterStoreClass)
Deprecated.
|
void |
registerExplorerProvider(java.lang.String name,
java.lang.Class explorerClass,
java.lang.Class parametersClass) |
void |
registerFeatureCacheProvider(FeatureCacheProviderFactory providerFactory) |
void |
registerLargeMap(Factory factory) |
void |
registerLargeSet(Factory factory) |
void |
registerServerExplorerFactory(DataServerExplorerFactory factory) |
void |
registerStoreFactory(DataStoreFactory_v2_4 factory) |
void |
registerStoreFactory(java.lang.String name,
java.lang.Class storeFactoryClass)
Deprecated.
|
void |
registerStoreProvider(java.lang.String name,
java.lang.Class storeProviderClass,
java.lang.Class parametersClass)
Deprecated.
use registerStoreProviderFactory
|
void |
registerStoreProviderFactory(DataStoreProviderFactory 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 |
setProperty(java.lang.String name,
java.lang.Object value) |
void |
setResourcesLoader(java.lang.ClassLoader loader) |
void |
setResourcesLoader(java.io.File folder) |
DataStoreParameters |
toDataStoreParameters(java.lang.String provider,
DynObject params) |
void |
writeDALResource(ResourcesStorage resources,
DataStore store) |
void |
writeDALResource(ResourcesStorage resources,
FeatureType featureType) |
public static final java.lang.String FILESYSTEM_EXPLORER_NAME
public static final long DEFAULT_MAX_SIZE_FOR_SMALL_FEATURE_SELECTION
public Register getStoreRegister()
getStoreRegister
in interface DataManager
public Register getStoreProviderRegister()
getStoreProviderRegister
in interface DataManager
public Register getServerExplorerRegister()
getServerExplorerRegister
in interface DataManager
public Register getFeatureIndexRegister()
getFeatureIndexRegister
in interface DataManager
public void registerDefaultRasterStore(java.lang.Class rasterStoreClass)
DataManagerProviderServices
registerDefaultRasterStore
in interface DataManagerProviderServices
public void registerStoreFactory(java.lang.String name, java.lang.Class storeFactoryClass)
DataManagerProviderServices
registerStoreFactory
in interface DataManagerProviderServices
public boolean isTheOldRasterRegistered()
isTheOldRasterRegistered
in interface DataManager
public void registerStoreProvider(java.lang.String name, java.lang.Class storeProviderClass, java.lang.Class parametersClass)
DataManagerProviderServices
registerStoreProvider
in interface DataManagerProviderServices
name
- storeProviderClass
- parametersClass
- public void registerExplorerProvider(java.lang.String name, java.lang.Class explorerClass, java.lang.Class parametersClass)
registerExplorerProvider
in interface DataManagerProviderServices
explorerClass
- class of providerparametersClass
- parameters class of providerpublic void registerStoreFactory(DataStoreFactory_v2_4 factory)
registerStoreFactory
in interface DataManagerProviderServices
public void registerStoreProviderFactory(DataStoreProviderFactory factory)
registerStoreProviderFactory
in interface DataManagerProviderServices
public void registerServerExplorerFactory(DataServerExplorerFactory factory)
registerServerExplorerFactory
in interface DataManagerProviderServices
public DataStoreParameters createStoreParameters(byte[] data)
createStoreParameters
in interface DataManager
public DataStoreParameters createStoreParameters(java.lang.String providerName) throws InitializeException, ProviderNotRegisteredException
createStoreParameters
in interface DataManager
InitializeException
ProviderNotRegisteredException
public DataStoreParameters createStoreParameters(java.lang.String providerName, java.lang.Object... arguments) throws InitializeException, ProviderNotRegisteredException
DataManager
createStoreParameters
in interface DataManager
providerName
- provider nameInitializeException
- if there is an error initializing the
parameters for the memory providerProviderNotRegisteredException
- if the memory provider is not
registeredpublic NewDataStoreParameters createNewStoreParameters(java.lang.String providerName) throws InitializeException, ProviderNotRegisteredException
createNewStoreParameters
in interface DataManager
InitializeException
ProviderNotRegisteredException
public NewDataStoreParameters createNewStoreParameters(java.lang.String explorerName, java.lang.String providerName) throws InitializeException, ProviderNotRegisteredException
DataManager
createNewStoreParameters
in interface DataManager
InitializeException
ProviderNotRegisteredException
public DataServerExplorerParameters createServerExplorerParameters(java.lang.String explorerName) throws InitializeException, ProviderNotRegisteredException
DataManager
DataServerExplorerParameters
corresponding
to the given name.createServerExplorerParameters
in interface DataManager
explorerName
- name of a registered server explorer providerInitializeException
- if parameter initialization causes an error.ProviderNotRegisteredException
- if could not find a provider by
the given name.public DataStoreParameters createMemoryStoreParameters(java.lang.String autoOrderAttributeName) throws InitializeException
DataManager
DataStoreParameters
to create a
FeatureStore
based on the MemoryStoreProvider
.createMemoryStoreParameters
in interface DataManager
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 providerpublic DataServerExplorer openServerExplorer(java.lang.String explorerName, DataServerExplorerParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataManager
DataServerExplorer
given its parameters.openServerExplorer
in interface DataManager
parameters
- parameters used to instantiate and initialize the
DataServerExplorer
.DataServerExplorer
.InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public DataServerExplorer openServerExplorer(java.lang.String explorerName, java.lang.Object... arguments) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openServerExplorer
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public DataServerExplorer createServerExplorer(DataServerExplorerParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
createServerExplorer
in interface DataManager
parameters
- InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public DataStore createStore(DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
createStore
in interface DataManager
parameters
- InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public DataStore openStore(DataTransaction transaction, java.lang.String providerName, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public DataStore openStore(java.lang.String providerName, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public DataStore openStore(java.lang.String providerName, DataStoreParameters parameters, boolean ignoreDALResource) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public DataStore openStore(DataTransaction transaction, java.lang.String providerName, DataStoreParameters parameters, boolean ignoreDALResource) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public DataFactory getStoreFactory(DataStoreParameters parameters)
getStoreFactory
in interface DataManager
public void addObservers(DataStore store)
public DataStore openStore(DataStoreParameters parameters, DataStoreProvider provider)
openStore
in interface DataManagerProviderServices
public DataStore openStore(java.lang.String provider, DynObject parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataManager
openStore
in interface DataManager
parameters
- parameters used to instantiate and initialize the
DataStoreInitializeException
- if there is an error initializing the
parameters for the memory providerProviderNotRegisteredException
- if the memory provider is not
registeredValidateDataParametersException
- if the parameters to open the
memory based store are not validpublic DataStore openStore(java.lang.String providerName, java.lang.Object... arguments) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public FeatureStore createMemoryStore(java.lang.String autoOrderAttributeName) throws InitializeException
DataManager
FeatureStore
based on the
MemoryStoreProvider
.createMemoryStore
in interface DataManager
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 providerpublic DataStoreProviderFactory getStoreProviderFactory(java.lang.String providerName)
getStoreProviderFactory
in interface DataManager
public java.util.List<java.lang.String> getStoreProviders()
DataManager
getStoreProviders
in interface DataManager
public java.util.List<java.lang.String> getStoreProviders(java.lang.String explorerName)
DataManager
getStoreProviders
in interface DataManager
public java.util.List<java.lang.String> getExplorerProviders()
DataManager
getExplorerProviders
in interface DataManager
public DataStoreProvider createProvider(DataStoreProviderServices providerServices, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException
DataManagerProviderServices
createProvider
in interface DataManagerProviderServices
InitializeException
ProviderNotRegisteredException
public java.util.List<java.lang.String> getFeatureIndexProviders()
DataManager
getFeatureIndexProviders
in interface DataManager
public void setDefaultFeatureIndexProviderName(int dataType, java.lang.String name)
DataManager
setDefaultFeatureIndexProviderName
in interface DataManager
dataType
- one of the data types defined in DataTypes
.name
- Provider's namepublic java.lang.String getDefaultFeatureIndexProviderName(int dataType)
DataManager
DataTypes
.getDefaultFeatureIndexProviderName
in interface DataManager
dataType
- one of the constants in DataTypes
.FeatureIndexProvider
if there is
anyone available for the given data type.public FeatureIndexProviderServices createFeatureIndexProvider(java.lang.String name, FeatureStore store, FeatureType type, java.lang.String indexName, FeatureAttributeDescriptor attr) throws InitializeException, ProviderNotRegisteredException
DataManagerProviderServices
createFeatureIndexProvider
in interface DataManagerProviderServices
store
- associated FeatureStoretype
- associated FeatureTypeattr
- associated FeatureAttributeDescriptorInitializeException
ProviderNotRegisteredException
public java.lang.String getTemporaryDirectory()
DataManager
getTemporaryDirectory
in interface DataManager
public DataStoreParameters createStoreParameters(DynStruct struct) throws InitializeException, ProviderNotRegisteredException
DataManager
createStoreParameters
in interface DataManager
struct
- structure from which tags were created ths parameters.InitializeException
- if there is an error initializing the
parameters for the memory providerProviderNotRegisteredException
- if the memory provider is not
registeredpublic DataStoreParameters createStoreParameters(Tags tags) throws InitializeException, ProviderNotRegisteredException
createStoreParameters
in interface DataManager
InitializeException
ProviderNotRegisteredException
public DataStore openStore(DynStruct struct) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public void newStore(java.lang.String providerName, NewDataStoreParameters parameters, boolean overwrite) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
newStore
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
public void newStore(java.lang.String explorerName, java.lang.String providerName, NewDataStoreParameters parameters, boolean overwrite) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataManager
newStore
in interface DataManager
InitializeException
ProviderNotRegisteredException
ValidateDataParametersException
@Deprecated public Evaluator createExpresion(java.lang.String expression) throws InitializeException
DataManager
createExpresion
in interface DataManager
expression
- String containing a CQL expression.InitializeException
@Deprecated public Evaluator createExpresion(Expression expression) throws InitializeException
DataManager
createExpresion
in interface DataManager
expression
- a Expression with the filterInitializeException
public Evaluator createFilter(java.lang.String expression) throws InitializeException
DataManager
createFilter
in interface DataManager
expression
- String containing a CQL expression.InitializeException
public Evaluator createFilter(Expression expression) throws InitializeException
DataManager
createFilter
in interface DataManager
expression
- a Expression with the filterInitializeException
public FeaturePagingHelper createFeaturePagingHelper(FeatureStore featureStore, int pageSize) throws BaseException
DataManager
FeaturePagingHelper
to paginate data from a
FeatureStore
.createFeaturePagingHelper
in interface DataManager
featureStore
- to get the Feature
s frompageSize
- the page sizeFeaturePagingHelper
BaseException
- if there is an error creating the helperpublic FeaturePagingHelper createFeaturePagingHelper(FeatureStore featureStore, FeatureQuery featureQuery, int pageSize) throws BaseException
DataManager
FeaturePagingHelper
to paginate data from a
FeatureStore
.createFeaturePagingHelper
in interface DataManager
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 helperpublic void setOpenErrorHandler(OpenErrorHandler handler)
setOpenErrorHandler
in interface DataManager
public OpenErrorHandler getOpenErrorHandler()
getOpenErrorHandler
in interface DataManager
public EditableFeatureType createFeatureType()
createFeatureType
in interface DataManager
public EditableFeatureType createFeatureType(JsonObject json)
createFeatureType
in interface DataManager
public DataServerExplorerPool getDataServerExplorerPool()
getDataServerExplorerPool
in interface DataManager
public void setDataServerExplorerPool(DataServerExplorerPool pool)
setDataServerExplorerPool
in interface DataManager
public DataStoreParameters toDataStoreParameters(java.lang.String provider, DynObject params) throws InitializeException, ProviderNotRegisteredException
public java.util.List<DataType> getDataTypes()
DataManager
getDataTypes
in interface DataManager
public void setResourcesLoader(java.lang.ClassLoader loader)
setResourcesLoader
in interface DataManager
public void setResourcesLoader(java.io.File folder)
setResourcesLoader
in interface DataManager
public java.net.URL getResource(java.lang.Object reourceLoader, java.lang.String name)
DataManagerProviderServices
getResource
in interface DataManagerProviderServices
public java.io.InputStream getResourceAsStream(java.lang.Object reourceLoader, java.lang.String name)
DataManagerProviderServices
getResourceAsStream
in interface DataManagerProviderServices
public ExpressionBuilder createExpressionBuilder()
DataManager
createExpressionBuilder
in interface DataManager
public void registerFeatureCacheProvider(FeatureCacheProviderFactory providerFactory)
public FeatureCacheProvider createFeatureCacheProvider(java.lang.String name, DynObject parameters) throws DataException
DataException
public java.util.List getFeatureCacheProviders()
DataManager
getFeatureCacheProviders
in interface DataManager
public DynObject createCacheParameters(java.lang.String name) throws InitializeException, ProviderNotRegisteredException
DataManager
DataServerExplorerParameters
corresponding
to the given name used by the cache to create a store to save the
retrieved data.createCacheParameters
in interface DataManager
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.public void createFileStore(java.lang.String providerName, NewDataStoreParameters params, boolean overwrite) throws DataException
createFileStore
in interface DataManager
DataException
public FeatureSymbolTable createFeatureSymbolTable()
createFeatureSymbolTable
in interface DataManager
public FeatureSymbolTable createFeatureSymbolTable(java.lang.String name)
createFeatureSymbolTable
in interface DataManager
public FeatureAttributeEmulatorExpression createFeatureAttributeEmulatorExpression(FeatureType type, Expression expression)
createFeatureAttributeEmulatorExpression
in interface DataManager
public void registerDataProfile(DataProfile profile)
registerDataProfile
in interface DataManager
public java.util.List<DataProfile> getDataProfiles()
getDataProfiles
in interface DataManager
public DataProfile getDataProfile(java.lang.String name)
getDataProfile
in interface DataManager
public StoresRepository getStoresRepository()
getStoresRepository
in interface DataManager
public DatabaseWorkspaceManager createDatabaseWorkspaceManager(DataServerExplorerParameters connection)
createDatabaseWorkspaceManager
in interface DataManager
public void removeDatabaseWorkspace(DatabaseWorkspaceManager databaseWorkspace)
removeDatabaseWorkspace
in interface DataManager
public void addDatabaseWorkspace(DatabaseWorkspaceManager databaseWorkspace)
addDatabaseWorkspace
in interface DataManager
public void addDatabaseWorkspaceListener(DatabaseWorkspaceManager.DatabaseWorkspaceListener listener)
addDatabaseWorkspaceListener
in interface DataManager
public DatabaseWorkspaceManager getDatabaseWorkspace(java.lang.String name)
getDatabaseWorkspace
in interface DataManager
public DatabaseWorkspaceManager getDatabaseWorkspace(DataStoreParameters params)
getDatabaseWorkspace
in interface DataManager
public DatabaseWorkspaceManager getDatabaseWorkspace(DataServerExplorerParameters params)
getDatabaseWorkspace
in interface DataManager
public void writeDALResource(ResourcesStorage resources, DataStore store)
writeDALResource
in interface DataManager
public void writeDALResource(ResourcesStorage resources, FeatureType featureType)
writeDALResource
in interface DataManager
public void clearAvailableValuesCache()
clearAvailableValuesCache
in interface DataManager
public java.lang.String createUniqueID()
DataManager
createUniqueID
in interface DataManager
public EditableFeatureAttributeDescriptor createFeatureAttributeDescriptor(java.lang.String name, int type)
createFeatureAttributeDescriptor
in interface DataManager
public static DefaultEditableFeatureAttributeDescriptor createEditableFeatureAttributeDescriptor(FeatureType ftype, java.lang.String name, int type)
public static DefaultEditableFeatureAttributeDescriptor createEditableFeatureAttributeDescriptor(FeatureType ftype, java.lang.String name, int type, boolean strongChanges)
public DALExpressionBuilder createDALExpressionBuilder()
createDALExpressionBuilder
in interface DataManager
public void addStoreObserver(Observer observer)
addStoreObserver
in interface DataManager
public void removeStoreObserver(Observer observer)
removeStoreObserver
in interface DataManager
public java.lang.String getServerExplorerFromStore(java.lang.String name)
getServerExplorerFromStore
in interface DataManager
public void setMaxSizeForSmallFeatureSelection(long size)
setMaxSizeForSmallFeatureSelection
in interface DataManager
public long getMaxSizeForSmallFeatureSelection()
getMaxSizeForSmallFeatureSelection
in interface DataManager
public void registerLargeMap(Factory factory)
registerLargeMap
in interface DataManager
public void registerLargeSet(Factory factory)
registerLargeSet
in interface DataManager
public java.util.Map createLargeMap()
createLargeMap
in interface DataManager
public java.util.Set createLargeSet()
createLargeSet
in interface DataManager
public DataTransaction createTransaction()
createTransaction
in interface DataManager
public void putFeaturesInClipboard(FeatureSet set)
putFeaturesInClipboard
in interface DataManager
public java.util.List<EditableFeature> getFeaturesFromClipboard(FeatureStore store, java.util.function.Predicate<FeatureAttributeDescriptor> attrFilter) throws DataException
getFeaturesFromClipboard
in interface DataManager
DataException
public FeatureRuleExpression createFeatureRuleExpression()
createFeatureRuleExpression
in interface DataManager
public java.io.File getCacheResourcesFolder()
getCacheResourcesFolder
in interface DataManager
public void clearAllCachedResources()
clearAllCachedResources
in interface DataManager
public LabelsCacheForFieldValues createLabelsCacheForFieldValues(Invocable labelFormulaProvider, SimpleTaskStatus status)
createLabelsCacheForFieldValues
in interface DataManager
public java.util.List<FeatureType> getFeatureTypesFromDAL(byte[] daldata)
getFeatureTypesFromDAL
in interface DataManager
public byte[] getDALBytesFromFeatureType(FeatureType ftype)
getDALBytesFromFeatureType
in interface DataManager
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface PropertiesSupport
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface PropertiesSupport
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties
in interface PropertiesSupport
public DataTypeDetector createDataTypeDetector(java.util.Locale locale)
createDataTypeDetector
in interface DataManager
public java.io.File getLocalResourcesFolder()
getLocalResourcesFolder
in interface DataManager
public java.io.File getLocalResourcesFolder(DataServerExplorerParameters params)
getLocalResourcesFolder
in interface DataManager
public void setLocalResourcesFolder(java.io.File resourcesFolder)
setLocalResourcesFolder
in interface DataManager