jdbc - Spring JdbcTemplate returns empty result when there should be a valid result -


I am using SimpleJdbcDaoSupport object to access DB resources. I have a query that is often executed against the database to detect a record with a particular key. After executing the same question several times, I start getting empty results for several reasons, even if the record is present in the database.

Any idea which can cause this behavior?

  daoSupport.getJdbcTemplate (). Query (this.getConsumerTokenQueryStatement (), Parameters, this.rowMapper); Public static class token Sewaonaromahapar Romamapr apply (public object Mancitrrv (Rijltsset RS, brick row Num) throws {default Lobhandlr Lobhandlr = new default Lobhandlr (Skyuelikseshn); Luhhandr KgetBlobAsBytes (RS, 1);}}  

If it is not related to your code so the fact it may be that another transaction The row you searched for something ( As an update) and due to isolation between transactions you can not see your line one transaction may change, but your line is still not reduced, while at the same time The second one is searching for it, but it can view only the committed rows, it does not see your line.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -