St.Antario
St.Antario

Reputation: 27375

JdbcTemplate query, what is it?

In our project I came across the following method:

public void saveDailyPlayersAccount(Date date) {
  JdbcTemplate template = new JdbcTemplate(dataSource);
  template.queryForRowSet("SELECT public.saveDailyPlayerAccount(?);", new Object[]{date});
}

The issue was caused by the query-string "SELECT public.saveDailyPlayerAccount(?);", passed to the queryForRowSet doesn't look like an sql-query. What does that actually mean?

Upvotes: 0

Views: 94

Answers (1)

ACV
ACV

Reputation: 10562

Looks like a call to a stored procedure. Where the ? gets substituted with date (it is a Object[] actually).

Upvotes: 2

Related Questions