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

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

   public test.interfaces.AddressData getData()
   {
      test.interfaces.AddressData dataHolder = null;
      try
      {
         dataHolder = new test.interfaces.AddressData();

         dataHolder.setId( getId() );
         dataHolder.setStreet( getStreet() );
         dataHolder.setCity( getCity() );
         dataHolder.setReadOnly( getReadOnly() );
         dataHolder.setCreationDate( getCreationDate() );

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

      return dataHolder;
   }

   public void ejbLoad() throws javax.ejb.EJBException
   {
      super.ejbLoad();
   }

   public void ejbStore() throws javax.ejb.EJBException
   {
         super.ejbStore();
   }

   public void ejbActivate() throws javax.ejb.EJBException
   {
      super.ejbActivate();
   }

   public void ejbPassivate() throws javax.ejb.EJBException
   {
      super.ejbPassivate();

      AddressValue = null;
   }

   public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException
   {
      super.setEntityContext(ctx);
   }

   public void unsetEntityContext() throws javax.ejb.EJBException
   {
      super.unsetEntityContext();
   }

   public void ejbRemove() throws javax.ejb.EJBException, javax.ejb.RemoveException
   {
      super.ejbRemove();

   }

 /* Value Objects BEGIN */

   private test.interfaces.AddressValue AddressValue = null;

   public test.interfaces.AddressValue getAddressValue()
   {
      AddressValue = new test.interfaces.AddressValue();
      try
         {
            AddressValue.setId( getId() );

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

	  return AddressValue;
   }

   public void setAddressValue( test.interfaces.AddressValue valueHolder )
   {

	  try
	  {

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

/* Value Objects END */

   public abstract java.lang.String getId() ;

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

   public abstract java.lang.String getStreet() ;

   public abstract void setStreet( java.lang.String street ) ;

   public abstract java.lang.String getCity() ;

   public abstract void setCity( java.lang.String city ) ;

   public abstract int getReadOnly() ;

   public abstract void setReadOnly( int readOnly ) ;

   public abstract java.util.Date getCreationDate() ;

   public abstract void setCreationDate( java.util.Date creationDate ) ;

}
