/** * Gets the where statement and conditions * * @param dataPack The DataPack object which contains the data to render as an sql string * @param sql The sql string we are parsing * @return The sql string concatenated with the where statement */ protected String getWhereString(DataPack dataPack, String sql) { synchronized (synchWhereString) { if (dataPack.getWhereClause() != null) { sql += " WHERE " + dataPack.getWhereClause(); } return sql; } }