Last active
April 26, 2019 02:04
-
-
Save tkstone/a2b82056375bdde0722d8c58fe599361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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