All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.exasol.adapter.document.mapping.TableKeyFetcher Maven / Gradle / Ivy

The newest version!
package com.exasol.adapter.document.mapping;

import java.util.List;

/**
 * This interfaces tries to fetch a global key for a remote table.
 */
public interface TableKeyFetcher {

    /**
     * This method tries to build a global key from given column mappings.
     *
     * @param tableName     name of the remote table
     * @param mappedColumns available column mappings
     * @return global key columns
     * @throws NoKeyFoundException if no fitting key was found
     */
    List fetchKeyForTable(String tableName, List mappedColumns)
            throws NoKeyFoundException;

    /**
     * {@link TableKeyFetcher}s throw this exception if they did not find a fitting key.
     */
    class NoKeyFoundException extends Exception {
        private static final long serialVersionUID = 7924854713502228769L;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy