public static String getAllSinkColumns(ToolOptions options, ResultSetMetaData rsmd) throws SQLException {

        if (options.getSinkColumns() != null && !options.getSinkColumns().isEmpty()) {
            return options.getSinkColumns();
        } else if (options.getSourceColumns() != null && !options.getSourceColumns().isEmpty()) {
            return options.getSourceColumns();
        } else {
            options.setSinkColumns(getColumnsFromResultSetMetaData(options, rsmd));
            LOG.warn("Options source-columns and sink-columns are null, getting from Source ResultSetMetaData: " + options.getSinkColumns());
            return options.getSinkColumns();
        }
    }
@param options
@param rsmd
@return
@throws SQLException
src/main/java/org/replicadb/manager/util/SqlNames.java