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; }
public void storeAttachment(Attachment attachment) throws RemoteException { AttachmentDAO attachmentDAO = new AttachmentDAO(conn); attachmentDAO.storeAttachment(attachment); }
public Attachment retrieveAttachmentByAttachmentId(long attachmentId) throws RemoteException { Attachment attachment = new Attachment(); AttachmentDAO attachmentDAO = new AttachmentDAO(conn); attachment = attachmentDAO.retrieveAttachmentByAttachmentId(attachmentId); return attachment; }