All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.endoscope.storage.jdbc.handler.StringHandler Maven / Gradle / Ivy

The newest version!
package com.github.endoscope.storage.jdbc.handler;

import org.apache.commons.dbutils.ResultSetHandler;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public class StringHandler implements ResultSetHandler> {
    public List handle(ResultSet rs) throws SQLException {
        List result = new ArrayList<>();
        while (rs.next()) {
            result.add(rs.getString(1));
        }
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy