I have a insert if not exists query as below.
BEGIN IF NOT EXISTS (SELECT * FROM tbl_sampleTable WHERE name = ? or subject = ?) BEGIN INSERT INTO
JDBC doesn't support named parameters, but Spring JDBC provides this functionality with NamedParameterJdbcTemplate