I have the following parameterized query and set of arguments:
private String queryBuilder(DetailsRequest apiRequest, Map<String, String> headers) {
StringBuilder builder = new StringBuilder();
final String QUERY = "select * from gfc.LSI_ELGBLTY where INSURANCE_ID = ? and SYS_CD = ? and ACCT_TYPE in (?)";
Object[] params = new Object[] {
request.getInsuranceId(),request.getSystemId(),AcctNameBuilder};
}
How can I set these parameters to the above query and print it? I just don't want to execute them. I am using spring-boot and I don't want to create new connection object for this.