Coverage Report - jp.co.y_net.amm.dao.Inf
 
Classes in this File Line Coverage Branch Coverage Complexity
Inf
0%
0/24
N/A
0
 
 1  
 package jp.co.y_net.amm.dao;
 2  
 
 3  
 import java.io.Serializable;
 4  
 import java.text.DateFormat;
 5  
 import java.text.SimpleDateFormat;
 6  
 import java.util.Date;
 7  
 
 8  
 import jp.co.y_net.amm.common.AppUtils;
 9  
 
 10  
 import org.apache.commons.lang.StringUtils;
 11  
 
 12  
 
 13  0
 public class Inf extends AppDto implements Serializable {
 14  
         private static final long serialVersionUID = 1L;
 15  
         
 16  0
         public static final DateFormat DF_PUBDATE = new SimpleDateFormat("yyyy/MM/dd"); // 掲載日 フォーマット
 17  0
         public static final Integer DEFお知らせ本文の文字数 = 5000;
 18  
         
 19  
         /** 状態 */
 20  0
     public static final Integer STATUS_掲載中 = 2;
 21  0
     public static final Integer STATUS_その他 = 1;
 22  0
     public static final Integer STATUS_掲載終了 = 9;
 23  
         
 24  
         private Integer infid;
 25  
         private String title;
 26  
         private String body;
 27  
         private Long pubdate;
 28  
     private Integer status;
 29  
 
 30  
     
 31  
     public String getTitleFormat() {
 32  0
         return StringUtils.abbreviate(title, 50); // 50文字に省略
 33  
     }
 34  
     public String getPubdate_Disp() {
 35  0
         Date d = AppUtils.toDate(this.pubdate);
 36  0
         return DF_PUBDATE.format(d);
 37  
     }
 38  
     
 39  
     
 40  
     public Integer getInfid() {
 41  0
         return infid;
 42  
     }
 43  
     public void setInfid(Integer infid) {
 44  0
         this.infid = infid;
 45  0
     }
 46  
     public String getTitle() {
 47  0
         return title;
 48  
     }
 49  
     public void setTitle(String title) {
 50  0
         this.title = title;
 51  0
     }
 52  
     public String getBody() {
 53  0
         return body;
 54  
     }
 55  
     public void setBody(String body) {
 56  0
         this.body = body;
 57  0
     }
 58  
     public Long getPubdate() {
 59  0
         return pubdate;
 60  
     }
 61  
     public void setPubdate(Long pubdate) {
 62  0
         this.pubdate = pubdate;
 63  0
     }
 64  
     public Integer getStatus() {
 65  0
         return status;
 66  
     }
 67  
     public void setStatus(Integer status) {
 68  0
         this.status = status;
 69  0
     }
 70  
 }
 71