Skip to content

Instantly share code, notes, and snippets.

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