Class 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 Detail

      • RefreshRequest

        public RefreshRequest​(String adapterName,
                              SchemaMetadataInfo schemaMetadataInfo)
        Create a new request of type RefreshRequest for the whole Virtual Schema
        Parameters:
        adapterName - name of the adapter that should handle the request
        schemaMetadataInfo - schema metadata
      • RefreshRequest

        public RefreshRequest​(String adapterName,
                              SchemaMetadataInfo schemaMetadataInfo,
                              List<String> tables)
        Create a new request of type RefreshRequest for selected tables
        Parameters:
        adapterName - name of the adapter that should handle the request
        schemaMetadataInfo - schema metadata
        tables - 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:
        true if the refresh request is restricted to tables