Class PreviousExtensionVersion.Builder

    • Method Detail

      • adapterFileName

        public PreviousExtensionVersion.Builder adapterFileName​(String adapterFileName)
        Set the adapter file name, e.g. document-files-virtual-schema-dist-7.3.3-s3-2.6.2.jar.

        This is optional. If the adapter file name is null, no adapter file will be downloaded.

        Parameters:
        adapterFileName - adapter file name
        Returns:
        this for method chaining
      • currentVersion

        public PreviousExtensionVersion.Builder currentVersion​(String version)
        The version currently under development, e.g. 2.7.0. This is used to verify that upgrading from the previous version was successful.
        Parameters:
        version - the current version
        Returns:
        this for method chaining
      • previousVersion

        public PreviousExtensionVersion.Builder previousVersion​(String version)
        The version of the adapter that was published previously. E.g. if the currently developed version specified as currentVersion(String) is 2.7.0 then this could be 2.6.0 or 2.6.2. This version is used to build the download URLs for the extension repository, e.g. https://extensions-internal.exasol.com/com.exasol/$PROJECT/$VERSION/$FILENAME
        Parameters:
        version - the previous version
        Returns:
        this for method chaining
      • extensionFileName

        public PreviousExtensionVersion.Builder extensionFileName​(String extensionFileName)
        The file number under which the extension JavaScript file is published, e.g. s3-vs-extension.js.
        Parameters:
        extensionFileName - the extension file name
        Returns:
        this for method chaining
      • project

        public PreviousExtensionVersion.Builder project​(String project)
        The project name under which this project is published, e.g. s3-document-files-virtual-schema. This name is used to build the download URLs for the extension repository, e.g. https://extensions-internal.exasol.com/com.exasol/$PROJECT/$VERSION/$FILENAME.
        Parameters:
        project - project name in the extension repository
        Returns:
        this for method chaining
      • build

        public PreviousExtensionVersion build()
        Build the instance or return the previously built instance.
        Returns:
        the prepared previous version.