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 DataManagerpublic Register getStoreProviderRegister()
getStoreProviderRegister in interface DataManagerpublic Register getServerExplorerRegister()
getServerExplorerRegister in interface DataManagerpublic Register getFeatureIndexRegister()
getFeatureIndexRegister in interface DataManagerpublic void registerDefaultRasterStore(java.lang.Class rasterStoreClass)
DataManagerProviderServicesregisterDefaultRasterStore in interface DataManagerProviderServicespublic void registerStoreFactory(java.lang.String name,
java.lang.Class storeFactoryClass)
DataManagerProviderServicesregisterStoreFactory in interface DataManagerProviderServicespublic boolean isTheOldRasterRegistered()
isTheOldRasterRegistered in interface DataManagerpublic void registerStoreProvider(java.lang.String name,
java.lang.Class storeProviderClass,
java.lang.Class parametersClass)
DataManagerProviderServicesregisterStoreProvider in interface DataManagerProviderServicesname - storeProviderClass - parametersClass - public void registerExplorerProvider(java.lang.String name,
java.lang.Class explorerClass,
java.lang.Class parametersClass)
registerExplorerProvider in interface DataManagerProviderServicesexplorerClass - class of providerparametersClass - parameters class of providerpublic void registerStoreFactory(DataStoreFactory_v2_4 factory)
registerStoreFactory in interface DataManagerProviderServicespublic void registerStoreProviderFactory(DataStoreProviderFactory factory)
registerStoreProviderFactory in interface DataManagerProviderServicespublic void registerServerExplorerFactory(DataServerExplorerFactory factory)
registerServerExplorerFactory in interface DataManagerProviderServicespublic DataStoreParameters createStoreParameters(byte[] data)
createStoreParameters in interface DataManagerpublic DataStoreParameters createStoreParameters(java.lang.String providerName) throws InitializeException, ProviderNotRegisteredException
createStoreParameters in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionpublic DataStoreParameters createStoreParameters(java.lang.String providerName, java.lang.Object... arguments) throws InitializeException, ProviderNotRegisteredException
DataManagercreateStoreParameters in interface DataManagerproviderName - 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 DataManagerInitializeExceptionProviderNotRegisteredExceptionpublic NewDataStoreParameters createNewStoreParameters(java.lang.String explorerName, java.lang.String providerName) throws InitializeException, ProviderNotRegisteredException
DataManagercreateNewStoreParameters in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionpublic DataServerExplorerParameters createServerExplorerParameters(java.lang.String explorerName) throws InitializeException, ProviderNotRegisteredException
DataManagerDataServerExplorerParameters corresponding
to the given name.createServerExplorerParameters in interface DataManagerexplorerName - 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
DataManagerDataStoreParameters to create a
FeatureStore based on the MemoryStoreProvider.createMemoryStoreParameters in interface DataManagerautoOrderAttributeName - the name of the Feature attribute
to be used to order the store Features 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
DataManagerDataServerExplorer given its parameters.openServerExplorer in interface DataManagerparameters - parameters used to instantiate and initialize the
DataServerExplorer.DataServerExplorer.InitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic DataServerExplorer openServerExplorer(java.lang.String explorerName, java.lang.Object... arguments) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openServerExplorer in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic DataServerExplorer createServerExplorer(DataServerExplorerParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
createServerExplorer in interface DataManagerparameters - InitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic DataStore createStore(DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
createStore in interface DataManagerparameters - InitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic DataStore openStore(DataTransaction transaction, java.lang.String providerName, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic DataStore openStore(java.lang.String providerName, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic DataStore openStore(java.lang.String providerName, DataStoreParameters parameters, boolean ignoreDALResource) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic DataStore openStore(DataTransaction transaction, java.lang.String providerName, DataStoreParameters parameters, boolean ignoreDALResource) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic DataFactory getStoreFactory(DataStoreParameters parameters)
getStoreFactory in interface DataManagerpublic void addObservers(DataStore store)
public DataStore openStore(DataStoreParameters parameters, DataStoreProvider provider)
openStore in interface DataManagerProviderServicespublic DataStore openStore(java.lang.String provider, DynObject parameters) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
DataManageropenStore in interface DataManagerparameters - 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 DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic FeatureStore createMemoryStore(java.lang.String autoOrderAttributeName) throws InitializeException
DataManagerFeatureStore based on the
MemoryStoreProvider.createMemoryStore in interface DataManagerautoOrderAttributeName - the name of the Feature attribute
to be used to order the store Features 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 DataManagerpublic java.util.List<java.lang.String> getStoreProviders()
DataManagergetStoreProviders in interface DataManagerpublic java.util.List<java.lang.String> getStoreProviders(java.lang.String explorerName)
DataManagergetStoreProviders in interface DataManagerpublic java.util.List<java.lang.String> getExplorerProviders()
DataManagergetExplorerProviders in interface DataManagerpublic DataStoreProvider createProvider(DataStoreProviderServices providerServices, DataStoreParameters parameters) throws InitializeException, ProviderNotRegisteredException
DataManagerProviderServicescreateProvider in interface DataManagerProviderServicesInitializeExceptionProviderNotRegisteredExceptionpublic java.util.List<java.lang.String> getFeatureIndexProviders()
DataManagergetFeatureIndexProviders in interface DataManagerpublic void setDefaultFeatureIndexProviderName(int dataType,
java.lang.String name)
DataManagersetDefaultFeatureIndexProviderName in interface DataManagerdataType - one of the data types defined in DataTypes.name - Provider's namepublic java.lang.String getDefaultFeatureIndexProviderName(int dataType)
DataManagerDataTypes.getDefaultFeatureIndexProviderName in interface DataManagerdataType - 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
DataManagerProviderServicescreateFeatureIndexProvider in interface DataManagerProviderServicesstore - associated FeatureStoretype - associated FeatureTypeattr - associated FeatureAttributeDescriptorInitializeExceptionProviderNotRegisteredExceptionpublic java.lang.String getTemporaryDirectory()
DataManagergetTemporaryDirectory in interface DataManagerpublic DataStoreParameters createStoreParameters(DynStruct struct) throws InitializeException, ProviderNotRegisteredException
DataManagercreateStoreParameters in interface DataManagerstruct - 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 DataManagerInitializeExceptionProviderNotRegisteredExceptionpublic DataStore openStore(DynStruct struct) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException
openStore in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic void newStore(java.lang.String providerName,
NewDataStoreParameters parameters,
boolean overwrite)
throws InitializeException,
ProviderNotRegisteredException,
ValidateDataParametersException
newStore in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersExceptionpublic void newStore(java.lang.String explorerName,
java.lang.String providerName,
NewDataStoreParameters parameters,
boolean overwrite)
throws InitializeException,
ProviderNotRegisteredException,
ValidateDataParametersException
DataManagernewStore in interface DataManagerInitializeExceptionProviderNotRegisteredExceptionValidateDataParametersException@Deprecated public Evaluator createExpresion(java.lang.String expression) throws InitializeException
DataManagercreateExpresion in interface DataManagerexpression - String containing a CQL expression.InitializeException@Deprecated public Evaluator createExpresion(Expression expression) throws InitializeException
DataManagercreateExpresion in interface DataManagerexpression - a Expression with the filterInitializeExceptionpublic Evaluator createFilter(java.lang.String expression) throws InitializeException
DataManagercreateFilter in interface DataManagerexpression - String containing a CQL expression.InitializeExceptionpublic Evaluator createFilter(Expression expression) throws InitializeException
DataManagercreateFilter in interface DataManagerexpression - a Expression with the filterInitializeExceptionpublic FeaturePagingHelper createFeaturePagingHelper(FeatureStore featureStore, int pageSize) throws BaseException
DataManagerFeaturePagingHelper to paginate data from a
FeatureStore.createFeaturePagingHelper in interface DataManagerfeatureStore - to get the Features frompageSize - the page sizeFeaturePagingHelperBaseException - if there is an error creating the helperpublic FeaturePagingHelper createFeaturePagingHelper(FeatureStore featureStore, FeatureQuery featureQuery, int pageSize) throws BaseException
DataManagerFeaturePagingHelper to paginate data from a
FeatureStore.createFeaturePagingHelper in interface DataManagerfeatureStore - to get the Features fromfeatureQuery - to filter and/or order the datapageSize - the page sizeFeaturePagingHelperBaseException - if there is an error creating the helperpublic void setOpenErrorHandler(OpenErrorHandler handler)
setOpenErrorHandler in interface DataManagerpublic OpenErrorHandler getOpenErrorHandler()
getOpenErrorHandler in interface DataManagerpublic EditableFeatureType createFeatureType()
createFeatureType in interface DataManagerpublic EditableFeatureType createFeatureType(JsonObject json)
createFeatureType in interface DataManagerpublic DataServerExplorerPool getDataServerExplorerPool()
getDataServerExplorerPool in interface DataManagerpublic void setDataServerExplorerPool(DataServerExplorerPool pool)
setDataServerExplorerPool in interface DataManagerpublic DataStoreParameters toDataStoreParameters(java.lang.String provider, DynObject params) throws InitializeException, ProviderNotRegisteredException
public java.util.List<DataType> getDataTypes()
DataManagergetDataTypes in interface DataManagerpublic void setResourcesLoader(java.lang.ClassLoader loader)
setResourcesLoader in interface DataManagerpublic void setResourcesLoader(java.io.File folder)
setResourcesLoader in interface DataManagerpublic java.net.URL getResource(java.lang.Object reourceLoader,
java.lang.String name)
DataManagerProviderServicesgetResource in interface DataManagerProviderServicespublic java.io.InputStream getResourceAsStream(java.lang.Object reourceLoader,
java.lang.String name)
DataManagerProviderServicesgetResourceAsStream in interface DataManagerProviderServicespublic ExpressionBuilder createExpressionBuilder()
DataManagercreateExpressionBuilder in interface DataManagerpublic void registerFeatureCacheProvider(FeatureCacheProviderFactory providerFactory)
public FeatureCacheProvider createFeatureCacheProvider(java.lang.String name, DynObject parameters) throws DataException
DataExceptionpublic java.util.List getFeatureCacheProviders()
DataManagergetFeatureCacheProviders in interface DataManagerpublic DynObject createCacheParameters(java.lang.String name) throws InitializeException, ProviderNotRegisteredException
DataManagerDataServerExplorerParameters corresponding
to the given name used by the cache to create a store to save the
retrieved data.createCacheParameters in interface DataManagername - 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 DataManagerDataExceptionpublic FeatureSymbolTable createFeatureSymbolTable()
createFeatureSymbolTable in interface DataManagerpublic FeatureSymbolTable createFeatureSymbolTable(java.lang.String name)
createFeatureSymbolTable in interface DataManagerpublic FeatureAttributeEmulatorExpression createFeatureAttributeEmulatorExpression(FeatureType type, Expression expression)
createFeatureAttributeEmulatorExpression in interface DataManagerpublic void registerDataProfile(DataProfile profile)
registerDataProfile in interface DataManagerpublic java.util.List<DataProfile> getDataProfiles()
getDataProfiles in interface DataManagerpublic DataProfile getDataProfile(java.lang.String name)
getDataProfile in interface DataManagerpublic StoresRepository getStoresRepository()
getStoresRepository in interface DataManagerpublic DatabaseWorkspaceManager createDatabaseWorkspaceManager(DataServerExplorerParameters connection)
createDatabaseWorkspaceManager in interface DataManagerpublic void removeDatabaseWorkspace(DatabaseWorkspaceManager databaseWorkspace)
removeDatabaseWorkspace in interface DataManagerpublic void addDatabaseWorkspace(DatabaseWorkspaceManager databaseWorkspace)
addDatabaseWorkspace in interface DataManagerpublic void addDatabaseWorkspaceListener(DatabaseWorkspaceManager.DatabaseWorkspaceListener listener)
addDatabaseWorkspaceListener in interface DataManagerpublic DatabaseWorkspaceManager getDatabaseWorkspace(java.lang.String name)
getDatabaseWorkspace in interface DataManagerpublic DatabaseWorkspaceManager getDatabaseWorkspace(DataStoreParameters params)
getDatabaseWorkspace in interface DataManagerpublic DatabaseWorkspaceManager getDatabaseWorkspace(DataServerExplorerParameters params)
getDatabaseWorkspace in interface DataManagerpublic void writeDALResource(ResourcesStorage resources, DataStore store)
writeDALResource in interface DataManagerpublic void writeDALResource(ResourcesStorage resources, FeatureType featureType)
writeDALResource in interface DataManagerpublic void clearAvailableValuesCache()
clearAvailableValuesCache in interface DataManagerpublic java.lang.String createUniqueID()
DataManagercreateUniqueID in interface DataManagerpublic EditableFeatureAttributeDescriptor createFeatureAttributeDescriptor(java.lang.String name, int type)
createFeatureAttributeDescriptor in interface DataManagerpublic 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 DataManagerpublic void addStoreObserver(Observer observer)
addStoreObserver in interface DataManagerpublic void removeStoreObserver(Observer observer)
removeStoreObserver in interface DataManagerpublic java.lang.String getServerExplorerFromStore(java.lang.String name)
getServerExplorerFromStore in interface DataManagerpublic void setMaxSizeForSmallFeatureSelection(long size)
setMaxSizeForSmallFeatureSelection in interface DataManagerpublic long getMaxSizeForSmallFeatureSelection()
getMaxSizeForSmallFeatureSelection in interface DataManagerpublic void registerLargeMap(Factory factory)
registerLargeMap in interface DataManagerpublic void registerLargeSet(Factory factory)
registerLargeSet in interface DataManagerpublic java.util.Map createLargeMap()
createLargeMap in interface DataManagerpublic java.util.Set createLargeSet()
createLargeSet in interface DataManagerpublic DataTransaction createTransaction()
createTransaction in interface DataManagerpublic void putFeaturesInClipboard(FeatureSet set)
putFeaturesInClipboard in interface DataManagerpublic java.util.List<EditableFeature> getFeaturesFromClipboard(FeatureStore store, java.util.function.Predicate<FeatureAttributeDescriptor> attrFilter) throws DataException
getFeaturesFromClipboard in interface DataManagerDataExceptionpublic FeatureRuleExpression createFeatureRuleExpression()
createFeatureRuleExpression in interface DataManagerpublic java.io.File getCacheResourcesFolder()
getCacheResourcesFolder in interface DataManagerpublic void clearAllCachedResources()
clearAllCachedResources in interface DataManagerpublic LabelsCacheForFieldValues createLabelsCacheForFieldValues(Invocable labelFormulaProvider, SimpleTaskStatus status)
createLabelsCacheForFieldValues in interface DataManagerpublic java.util.List<FeatureType> getFeatureTypesFromDAL(byte[] daldata)
getFeatureTypesFromDAL in interface DataManagerpublic byte[] getDALBytesFromFeatureType(FeatureType ftype)
getDALBytesFromFeatureType in interface DataManagerpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface PropertiesSupportpublic void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface PropertiesSupportpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface PropertiesSupportpublic DataTypeDetector createDataTypeDetector(java.util.Locale locale)
createDataTypeDetector in interface DataManagerpublic java.io.File getLocalResourcesFolder()
getLocalResourcesFolder in interface DataManagerpublic java.io.File getLocalResourcesFolder(DataServerExplorerParameters params)
getLocalResourcesFolder in interface DataManagerpublic void setLocalResourcesFolder(java.io.File resourcesFolder)
setLocalResourcesFolder in interface DataManager