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

de.chojo.sadu.mapper.rowmapper.RowMapping Maven / Gradle / Ivy

Go to download

SADU module to map values received from a database to java objects using the queries module.

The newest version!
/*
 *     SPDX-License-Identifier: LGPL-3.0-or-later
 *
 *     Copyright (C) RainbowDashLabs and Contributor
 */

package de.chojo.sadu.mapper.rowmapper;

import de.chojo.sadu.core.exceptions.ThrowingFunction;
import de.chojo.sadu.mapper.wrapper.Row;

import java.sql.SQLException;

@FunctionalInterface
public interface RowMapping {
    static  RowMapping create(ThrowingFunction mapper) {
        return mapper::apply;
    }

    T map(Row row) throws SQLException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy