Skip to content

Instantly share code, notes, and snippets.

Last active April 26, 2019 02:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tkstone/a2b82056375bdde0722d8c58fe599361 to your computer and use it in GitHub Desktop.
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