de.chojo.sadu.mapper.rowmapper.RowMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sadu-mapper Show documentation
Show all versions of sadu-mapper Show documentation
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;
}