//Source file: c:/work/board/NoticeBean.java
/**********************************************
/* ÇöÀç³¯Â¥: 0-03-08 11:03¿ÀÀü
/* ÀÛ¼ºÀÚ : Á¤À¯Áø
/* ¼³¸í: EJBHomeÀÇ interface
	 ¸Þ¼Òµå ±¸Çö
	 ¸â¹ö º¯¼ö Ãß°¡ : EntityContext ctx
***********************************************/
package board;

import javax.ejb.EntityBean;
import javax.ejb.EJBException;
import java.rmi.RemoteException;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;
import board.*;
/**
   °øÁö»çÇ× EntityBean
 */
public class NoticeBean implements EntityBean {
	
	/**
	   °Ô½Ã¹° ¹øÈ£
	 */
	public int id;
	
	/**
	   °Ô½Ã¹° Å¸ÀÔ( ÀÏ¹Ý, New, Hot)
	 */
	public byte type;
	
	/**
	   °øÁö»çÇ× µî·Ï(¼öÁ¤)ÀÏ
	 */
	public String up_date;
	
	/**
	   °³½ÃÀÏÀÚ
	 */
	public String start_date;
	
	/**
	   ¸¸·áÀÏÀÚ
	 */
	public String end_date;
	
	/**
	   °øÁö»çÇ× Á¶È¸¼ö
	 */
	public int count;
	
	/**
	   Á¦¸ñ
	 */
	public String title;
	
	/**
	   ³»¿ë
	 */
	public String content;
	
	
	/**
	   Ãß°¡ 
	 */
	private EntityContext ctx;
	
	/**
	
	*/
	//private TNotice tNotice;
	
	public NoticeBean() {}
	
	/**
	   
	 */
	public TNotice getNotice()
	{
		TNotice tNotice = new TNotice();
		tNotice.id = this.id;
		tNotice.type = this.type;
		tNotice.up_date = this.up_date;
		tNotice.end_date = this.end_date;
		tNotice.start_date = this.start_date;
		tNotice.count = this.count;
		tNotice.title = this.title;
		tNotice.content = this.content;
		
		
		return tNotice;
	}
		
	/**
	   
	 */
	public void setNotice(TNotice tNotice)
	{
		this.id = tNotice.id;
		this.type = tNotice.type;
		this.up_date = tNotice.up_date;
		this.end_date = tNotice.end_date;
		this.start_date = tNotice.start_date;
		this.count = tNotice.count;
		this.title = tNotice.title;
		this.content = tNotice.content;
	}
	/**
	
	*/
	
	public void ejbCreate(TNotice tNotice)
	{
       		setNotice(tNotice);
        }
    	public void ejbPostCreate(TNotice tNotice)
    	{
    		
    	}	
	/**
	   @roseuid 38BF66CA0277
	 */
	public int getID()
	{
		System.out.println("getId()=>"+id);
		
		return id;
	}
	
	/**
	   @roseuid 38BF66E20040
	 */
	public void setID(int id)
	{
		this.id = id;	
	}
	
	/**
	   @roseuid 38BF66EE0264
	 */
	public byte getType()
	{
		System.out.println("gettype()=>"+type);
		return type;
	}
	
	/**
	   @roseuid 38BF66F6032E
	 */
	public void setType(byte type)
	{
		this.type = type;
	}
	
	/**
	   @roseuid 38C09C680281
	 */
	public String getUpDate() 
	{
		System.out.println("getUpDate()=>"+up_date);
		return up_date;
		
	}
	
	/**
	   @roseuid 38C09C900170
	 */
	public String getStartDate()
	{
		System.out.println("getStartDate()=>"+start_date);
		return start_date;
	}
	
	/**
	   @roseuid 38C09CA20252
	 */
	public String getEndDate() 
	{
		System.out.println("getEndDate()=>"+end_date);
		return end_date;	
	}
	
	/**
	   @roseuid 38C09CB40280
	 */
	public void setCount(int count)
	{
		this.count =  count;
	}
	
	/**
	   @roseuid 38C09CFC0338
	 */
	public int getCount()
	{
		System.out.println("getCount()=>"+count);
		return count;	
	}
	
	/**
	   @roseuid 38C09D0A0067
	 */
	public void setTitle(String title)
	{
		this.title = title;
	}
	
	/**
	   @roseuid 38C09D3201AF
	 */
	public String getTitle()
	{
		System.out.println("getTitle()=>"+title);
		return title;	
	}
	
	/**
	   @roseuid 38C09D4E01C3
	 */
	public void setContent(String content)
	{
		this.content = content;
	}
	
	/**
	   @roseuid 38C09D720157
	 */
	public String getContent()
	{
		System.out.println("getContent()=>"+content);
		return content;
	}
	
	/**
	   @roseuid 38C09EF10126
	 */
	public void ejbActivate()
	{
		System.out.println("ejbActivate() start=>");
	}
	
	/**
	   @roseuid 38C09EF10162
	 */
	public void ejbLoad()
	{
		System.out.println("ejbLoad() start=>");
	
	}
	
	/**
	   @roseuid 38C09EF1019E
	 */
	public void ejbPassivate()
	{
		System.out.println("ejbPassivate() start=>");
	}
	
	/**
	   @roseuid 38C09EF101D0
	 */
	public void ejbRemove()
	{
		System.out.println("ejbRemove() start=>");
	}
	
	/**
	   @roseuid 38C09EF1020C
	 */
	public void ejbStore()
	{
		System.out.println("ejbStore() start=>");	
	}
	
	/**
	   @roseuid 38C09EF10248
	 */
	public void setEntityContext(EntityContext ctx)
	{
		System.out.println("setEntityContext() start=>");
		this.ctx = ctx;
	}
	
	/**
	   @roseuid 38C09EF102E8
	 */
	public void unsetEntityContext()
	{
		System.out.println("unsetEntityContext() start=>");
		this.ctx = null;
	
	}
	
	
}
