NewsAttachment.java
上传用户:junmaots
上传日期:2022-07-09
资源大小:2450k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. /*
  2.  * Created on 2005-12-2
  3.  *
  4.  * TODO To change the template for this generated file go to
  5.  * Window - Preferences - Java - Code Style - Code Templates
  6.  */
  7. package com.mycompany.news.dto;
  8. /**
  9.  * @author Administrator
  10.  *
  11.  * TODO To change the template for this generated type comment go to
  12.  * Window - Preferences - Java - Code Style - Code Templates
  13.  */
  14. public class NewsAttachment {
  15. private Long attachmentId;
  16. private Long newsId;
  17. private String attachmentName;
  18. private byte[] attachmentContent;
  19. /**
  20.  * @return Returns the attachmentId.
  21.  */
  22. public Long getAttachmentId() {
  23. return attachmentId;
  24. }
  25. /**
  26.  * @param attachmentId The attachmentId to set.
  27.  */
  28. public void setAttachmentId(Long attachmentId) {
  29. this.attachmentId = attachmentId;
  30. }
  31. /**
  32.  * @return Returns the attachmentName.
  33.  */
  34. public String getAttachmentName() {
  35. return attachmentName;
  36. }
  37. /**
  38.  * @param attachmentName The attachmentName to set.
  39.  */
  40. public void setAttachmentName(String attachmentName) {
  41. this.attachmentName = attachmentName;
  42. }
  43. /**
  44.  * @return Returns the attContent.
  45.  */
  46. public byte[] getAttachmentContent() {
  47. return attachmentContent;
  48. }
  49. /**
  50.  * @param attContent The attContent to set.
  51.  */
  52. public void setAttachmentContent(byte[] attContent) {
  53. this.attachmentContent = attContent;
  54. }
  55. /**
  56.  * @return Returns the newsId.
  57.  */
  58. public Long getNewsId() {
  59. return newsId;
  60. }
  61. /**
  62.  * @param newsId The newsId to set.
  63.  */
  64. public void setNewsId(Long newsId) {
  65. this.newsId = newsId;
  66. }
  67. }