Package com.exasol.adapter.request
Class SetPropertiesRequest
- java.lang.Object
-
- com.exasol.adapter.request.AbstractAdapterRequest
-
- com.exasol.adapter.request.SetPropertiesRequest
-
- All Implemented Interfaces:
AdapterRequest
public class SetPropertiesRequest extends AbstractAdapterRequest
This class represents a request that tells a Virtual Schema Adapter to set the provided properties
-
-
Constructor Summary
Constructors Constructor Description SetPropertiesRequest(SchemaMetadataInfo schemaMetadataInfo, Map<String,String> properties)
Create a new request of typeSetPropertiesRequest
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
executeWith(AdapterCallExecutor adapterCallExecutor, com.exasol.ExaMetadata metadata)
Execute an adapter call.Map<String,String>
getProperties()
Get the properties to be set-
Methods inherited from class com.exasol.adapter.request.AbstractAdapterRequest
getSchemaMetadataInfo, getType, getVirtualSchemaName, toString
-
-
-
-
Constructor Detail
-
SetPropertiesRequest
public SetPropertiesRequest(SchemaMetadataInfo schemaMetadataInfo, Map<String,String> properties)
Create a new request of typeSetPropertiesRequest
- Parameters:
schemaMetadataInfo
- schema metadataproperties
- the properties to be set
-
-
Method Detail
-
getProperties
public Map<String,String> getProperties()
Get the properties to be set- Returns:
- properties to be set
-
executeWith
public String executeWith(AdapterCallExecutor adapterCallExecutor, com.exasol.ExaMetadata metadata) throws AdapterException
Description copied from interface:AdapterRequest
Execute an adapter call.- Parameters:
adapterCallExecutor
- instance ofAdapterCallExecutor
metadata
- metadata for the context in which the adapter exists- Returns:
- response in a JSON format
- Throws:
AdapterException
- if some problem occurs
-
-