package trade.price.ejb.e2.server;

import javax.ejb.EntityBean;
import javax.ejb.EJBException;
import java.rmi.RemoteException;
import javax.ejb.EntityContext;
import trade.price.ejb.e2.interfaces.*;

public class E2Bean implements EntityBean {
	public String date_data;
	public double pretotal_index;
	public double with_total_index;
	public double aftertotal_index;
	public double with_change;
	public String update_flag;
	
	private boolean isModify = false;
   private transient EntityContext ctx;

	public E2Bean() {}
	
	/**
	   @roseuid 3922159C02E9
	 */
	public TE2 getE2()
  {
  	TE2 tE2 = new TE2();
    tE2.date_data = this.date_data;
    tE2.pretotal_index = this.pretotal_index;
    tE2.with_total_index = this.with_total_index;
    tE2.aftertotal_index = this.aftertotal_index;
    tE2.with_change = this.with_change;
    tE2.update_flag = this.update_flag;
    return tE2;
  }
	
	/**
	   @roseuid 392215A30163
	 */
	public void setE2(TE2 tE2)
  {
  	this.date_data = tE2.date_data;
    this.pretotal_index = tE2.pretotal_index;
    this.with_total_index = tE2.with_total_index;
    this.aftertotal_index = tE2.aftertotal_index;
    this.with_change = tE2.with_change;
    this.update_flag = tE2.update_flag;
  }
	
	public void ejbCreate(TE2 tE2) 
	{
		System.out.println("ejbCreate() Method");
		setE2(tE2);
	}

	public void ejbPostCreate(TE2 tE2)
	{
	}
	/**
	   @roseuid 39222A8A013F
	 */
	public void ejbActivate() {}

	/**
	   @roseuid 39222A8A015D
	 */
	public void ejbLoad() {}

	/**
	   @roseuid 39222A8A018F
	 */
	public void ejbPassivate() {}

	/**
	   @roseuid 39222A8A01C1
	 */
	public void ejbRemove() {}

	/**
	   @roseuid 39222A8A026C
	 */
	public void ejbStore() {}
	
	/**
	   @roseuid 39222A8A02B2
	 */
	public void setEntityContext(EntityContext ctx)
  {
		this.ctx = ctx;
  }

	/**
	   @roseuid 39222A8A032A
	 */
	public void unsetEntityContext()
  {
  	this.ctx = null;
  }

	public boolean isModified()
 	{
		return isModify;
	}

	public void setModified(boolean flag)
	{
		isModify = flag;
	}
}
