org.devocative.adroit.sql.result.ResultSetProcessor Maven / Gradle / Ivy
package org.devocative.adroit.sql.result;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
public class ResultSetProcessor {
public static void processRowAsList(ResultSet rs, IRowAsList asList) throws SQLException {
processRowAsList(rs, rs.getMetaData(), asList);
}
public static void processRowAsList(ResultSet rs, ResultSetMetaData metaData, IRowAsList asList) throws SQLException {
int size = metaData.getColumnCount();
while (rs.next()) {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy