/*
 * Generated by XDoclet - Do not edit!
 */
package test.ejb.cmr;

/**
 * CMP layer for EmployeeAddress.
 * @xdoclet-generated at 16-04-05
 * @copyright The XDoclet Team
 * @author XDoclet
 * @version 1.2.3
 */
public abstract class EmployeeAddressCMP
   extends test.ejb.cmr.EmployeeAddressBean
   implements javax.ejb.EntityBean
{

   public test.ejb.cmr.EmployeeAddressData getData()
   {
      test.ejb.cmr.EmployeeAddressData dataHolder = null;
      try
      {
         dataHolder = new test.ejb.cmr.EmployeeAddressData();

         dataHolder.setId( getId() );
         dataHolder.setDescription( getDescription() );

      }
      catch (RuntimeException e)
      {
         throw new javax.ejb.EJBException(e);
      }

      return dataHolder;
   }

   /**
    * Generated ejbPostCreate for corresponding ejbCreate method.
    *
    * @see #ejbCreate(test.ejb.cmr.EmployeeAddressValue eav)
    */
   public void ejbPostCreate(test.ejb.cmr.EmployeeAddressValue eav)
   {
   }

   public void ejbLoad() 
   {
   }

   public void ejbStore() 
   {
   }

   public void ejbActivate() 
   {
   }

   public void ejbPassivate() 
   {

      EmployeeAddressValue = null;
   }

   public void setEntityContext(javax.ejb.EntityContext ctx) 
   {
   }

   public void unsetEntityContext() 
   {
   }

   public void ejbRemove() throws javax.ejb.RemoveException
   {

   }

 /* Value Objects BEGIN */

   private test.ejb.cmr.EmployeeAddressValue EmployeeAddressValue = null;

   public test.ejb.cmr.EmployeeAddressValue getEmployeeAddressValue()
   {
      EmployeeAddressValue = new test.ejb.cmr.EmployeeAddressValue();
      try
         {
            EmployeeAddressValue.setId( getId() );
            EmployeeAddressValue.setDescription( getDescription() );

         }
         catch (Exception e)
         {
            throw new javax.ejb.EJBException(e);
         }

	  return EmployeeAddressValue;
   }

   public void setEmployeeAddressValue( test.ejb.cmr.EmployeeAddressValue valueHolder )
   {

	  try
	  {
		 setDescription( valueHolder.getDescription() );

	  }
	  catch (Exception e)
	  {
		 throw new javax.ejb.EJBException(e);
	  }
   }

/* Value Objects END */

   public abstract java.lang.Integer getId() ;

   public abstract void setId( java.lang.Integer id ) ;

   public abstract java.lang.String getDescription() ;

   public abstract void setDescription( java.lang.String description ) ;

}
