int queryPos = 0;
q.setString(queryPos++, portletId);
q.setString(queryPos++, groupId);
q.setString(queryPos++, companyId);
Iterator itr = q.list().iterator();
while (itr.hasNext()) {
PollsQuestionHBM pollsQuestionHBM = (PollsQuestionHBM)itr.next();
PollsQuestionPool.remove((String)pollsQuestionHBM.getPrimaryKey());
session.delete(pollsQuestionHBM);