コード例 #1
0
 // find the ref to message
 public boolean findRefToMessage(MessageDVO data) throws DAOException {
   List l =
       super.find(
           "find_ref_to_message",
           new Object[] {data.getRefToMessageId(), data.getMessageBox(), data.getMessageType()});
   Iterator i = l.iterator();
   if (i.hasNext()) {
     ((MessageDataSourceDVO) data).setData(((MessageDataSourceDVO) i.next()).getData());
     return true;
   }
   return false;
 }
コード例 #2
0
 public boolean findOrderedMessageByMessageBoxAndCpaAndSequenceGroupAndSequenceNo(MessageDVO data)
     throws DAOException {
   List l =
       super.find(
           "find_ordered_message_by_message_box_and_cpa_and_sequence_group_and_sequence_no",
           new Object[] {
             data.getMessageBox(),
             data.getCpaId(),
             data.getService(),
             data.getAction(),
             data.getConvId(),
             new Integer(data.getSequenceGroup()),
             new Integer(data.getSequenceNo())
           });
   Iterator i = l.iterator();
   if (i.hasNext()) {
     ((MessageDataSourceDVO) data).setData(((MessageDataSourceDVO) i.next()).getData());
     return true;
   }
   return false;
 }