/** * Find max sequence no. of inbox message in PS or DL status by CPA Only for EbMS Inbox Collector * Service * * @param data The message data value object. * @return max sequence no. -1 will be returned if there is no matching data. * @throws DAOException if errors found when retrieving data from the data source. */ public int findInboxReadyMaxSequenceNoByCpa(MessageDVO data) throws DAOException { List l = super.find( "find_inbox_ready_max_sequence_no_by_cpa", new Object[] {data.getCpaId(), data.getService(), data.getAction(), data.getConvId()}); Iterator i = l.iterator(); if (i.hasNext()) { MessageDataSourceDVO resultData = (MessageDataSourceDVO) i.next(); return resultData.getSequenceNo(); } return -1; }