Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.springframework.jdbc.core.PreparedStatementSetter;
public class TestParameterSetter implements PreparedStatementSetter {
private String param;
public void setParam(String param) {
this.param = param;
public void setValues(PreparedStatement ps) throws SQLException {
ps.setString(1, this.param);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment