/** * Populate the passed query with bindCount number of placeholders '?'. The method will not put necessary parenteses * around the placeholders. * * @param query the original query including text to replace * @param replaceable the part of the original query that should be replaced by '?'s. * @param bindCount how many placeholders '?' should be generated * * @return The modified query */ public static String transformQueryForMultipleInParameters(String query, String replaceable, int bindCount) { String replacement = generateInBinds(bindCount); return query.replace(replaceable, replacement); }