
com.moparisthebest.jdbc.CleaningResultSetMapper Maven / Gradle / Ivy
The newest version!
package com.moparisthebest.jdbc;
import java.sql.ResultSet;
import java.util.Calendar;
public class CleaningResultSetMapper extends ResultSetMapper {
private final Cleaner cleaner;
public CleaningResultSetMapper(Cleaner cleaner, Calendar cal, int arrayMaxLength) {
super(cal, arrayMaxLength);
this.cleaner = cleaner;
}
public CleaningResultSetMapper(Cleaner cleaner) {
super();
this.cleaner = cleaner;
}
@Override
@SuppressWarnings({"unchecked"})
protected RowToObjectMapper getRowMapper(ResultSet resultSet, Class returnTypeClass, Calendar cal, Class> mapValType) {
return new CleaningRowToObjectMapper((Cleaner)cleaner, resultSet, returnTypeClass, cal, mapValType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy