Package com.exasol.adapter.request
Class RefreshRequest
- java.lang.Object
-
- com.exasol.adapter.request.AbstractAdapterRequest
-
- com.exasol.adapter.request.RefreshRequest
-
- All Implemented Interfaces:
AdapterRequest
public class RefreshRequest extends AbstractAdapterRequest
This class represents a request that tells a Virtual Schema Adapter to present the current metadata
-
-
Constructor Summary
Constructors Constructor Description RefreshRequest(SchemaMetadataInfo schemaMetadataInfo)Create a new request of typeRefreshRequestfor the whole Virtual SchemaRefreshRequest(SchemaMetadataInfo schemaMetadataInfo, List<String> tables)Create a new request of typeRefreshRequestfor selected tables
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexecuteWith(AdapterCallExecutor adapterCallExecutor, com.exasol.ExaMetadata metadata)Execute an adapter call.List<String>getTables()Get the tables for which the metadata should be presentedbooleanrefreshesOnlySelectedTables()-
Methods inherited from class com.exasol.adapter.request.AbstractAdapterRequest
getSchemaMetadataInfo, getType, getVirtualSchemaName, toString
-
-
-
-
Constructor Detail
-
RefreshRequest
public RefreshRequest(SchemaMetadataInfo schemaMetadataInfo)
Create a new request of typeRefreshRequestfor the whole Virtual Schema- Parameters:
schemaMetadataInfo- schema metadata
-
RefreshRequest
public RefreshRequest(SchemaMetadataInfo schemaMetadataInfo, List<String> tables)
Create a new request of typeRefreshRequestfor selected tables- Parameters:
schemaMetadataInfo- schema metadatatables- tables for which the metadata should be refreshed
-
-
Method Detail
-
getTables
public List<String> getTables()
Get the tables for which the metadata should be presented- Returns:
- tables
-
refreshesOnlySelectedTables
public boolean refreshesOnlySelectedTables()
- Returns:
trueif the refresh request is restricted to tables
-
executeWith
public String executeWith(AdapterCallExecutor adapterCallExecutor, com.exasol.ExaMetadata metadata) throws AdapterException
Description copied from interface:AdapterRequestExecute an adapter call.- Parameters:
adapterCallExecutor- instance ofAdapterCallExecutormetadata- metadata for the context in which the adapter exists- Returns:
- response in a JSON format
- Throws:
AdapterException- if some problem occurs
-
-