Created
June 10, 2015 20:35
-
-
Save herhor/6107367338853bae13f7 to your computer and use it in GitHub Desktop.
AAL2.adhocJdbcTemplate.java
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
JdbcTemplate jdbc = new JdbcTemplate(dataSource); | |
jdbc.setFetchSize(200); | |
jdbc.query("select a, b, c from table", | |
new RowCallbackHandler() { | |
@Override | |
public void processRow(ResultSet rs) throws SQLException { | |
... | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment