title: conditional where condition in Spring JDBCTemplate
body: <p>I have to include or exclude where condition in <strong>Spring JDBC Template</strong> depending upon value in parameter.
  Like we do in <strong>hibernate using 'Conjunction'</strong> and checking if searchParam have value or not then only go for WHERE other wise return whole data.</p>
  
  <p>One way is to write multiple if blocks and appending string in query suggest other ways.</p>
  
  <p>I am using namedParameterJdbcTemplate.</p>
  
  <p>Thanks in advance.</p>