Skip to content

Instantly share code, notes, and snippets.

@zznate
Created February 28, 2012 17:42
Show Gist options
  • Save zznate/1933905 to your computer and use it in GitHub Desktop.
Save zznate/1933905 to your computer and use it in GitHub Desktop.
private static String UPDATE_PORTOFOLIO_CQL = "update Portfolios set ? = ? where KEY = ?";
public void save(Position position) {
jdbcTemplate.update(UPDATE_PORTFOLIO_CQL,
new Object[] { position.getTicker(), position.getCount(), portfolio.getName()});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment