com.github.jayield.rapper.sql.SqlConsumer Maven / Gradle / Ivy
package com.github.jayield.rapper.sql;
import com.github.jayield.rapper.exceptions.DataMapperException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.function.Consumer;
public interface SqlConsumer {
void accept(T t) throws SQLException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, InstantiationException;
default Consumer wrap(){
return t -> {
try{ this.accept(t); }
catch (Exception e){//TODO
throw new DataMapperException(e);
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy