
com.moparisthebest.jdbc.CleaningRowToObjectMapper Maven / Gradle / Ivy
The newest version!
package com.moparisthebest.jdbc;
import java.sql.ResultSet;
import java.util.Calendar;
public class CleaningRowToObjectMapper extends RowToObjectMapper {
private final Cleaner cleaner;
public CleaningRowToObjectMapper(Cleaner cleaner, ResultSet resultSet, Class returnTypeClass, Calendar cal, Class> mapValType) {
super(resultSet, returnTypeClass, cal, mapValType);
if (cleaner == null)
throw new NullPointerException("cleaner cannot be null!");
this.cleaner = cleaner;
}
@Override
public T mapRowToReturnType() {
return cleaner.clean(super.mapRowToReturnType());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy