Exemplo n.º 1
0
 public List retrieveAttachmentsByCustomerId(long customerId) throws RemoteException {
   List attachments = new ArrayList();
   AttachmentDAO attachmentDAO = new AttachmentDAO(conn);
   attachments = attachmentDAO.retrieveAttachmentsByCustomerId(customerId);
   USFEnv.getLog().writeDebug("attachments size is......" + attachments.size(), this, null);
   return attachments;
 }
Exemplo n.º 2
0
 public void storeAttachment(Attachment attachment) throws RemoteException {
   AttachmentDAO attachmentDAO = new AttachmentDAO(conn);
   attachmentDAO.storeAttachment(attachment);
 }
Exemplo n.º 3
0
 public Attachment retrieveAttachmentByAttachmentId(long attachmentId) throws RemoteException {
   Attachment attachment = new Attachment();
   AttachmentDAO attachmentDAO = new AttachmentDAO(conn);
   attachment = attachmentDAO.retrieveAttachmentByAttachmentId(attachmentId);
   return attachment;
 }