return DAOUtil.freeze(DAOUtil.convertToList(it));
}
@Override
public List<UserTicket> findByEventId(PartakeConnection con, String eventId, int offset, int limit) throws DAOException {
Postgres9StatementAndResultSet psars = indexDao.select((Postgres9Connection) con,
"SELECT id FROM " + INDEX_TABLE_NAME + " WHERE eventId = ? ORDER BY appliedAt DESC OFFSET ? LIMIT ?",
new Object[] { eventId, offset, limit });
Postgres9IdMapper<UserTicket> idMapper = new Postgres9IdMapper<UserTicket>((Postgres9Connection) con, mapper, entityDao);
DataIterator<UserTicket> it = new Postgres9DataIterator<UserTicket>(idMapper, psars);