⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customerbmpbmp.java

📁 XDoclet 使自动生成部署描述符更为便利。XDoclet 是一个代码生成实用程序
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* * Generated by XDoclet - Do not edit! */package test.ejb;/** * BMP layer for CustomerBMP. * @xdoclet-generated at 22-10-04 * @copyright The XDoclet Team * @author XDoclet * @version 1.2.2 */public class CustomerBMPBMP   extends test.ejb.CustomerBMPBean   implements javax.ejb.EntityBean{   public int version = 0;   public float credit;   public java.lang.String[][] array;   public byte[] image;   public float tax;   public java.lang.String id;   public java.lang.String name;   public java.lang.String firstName;   public java.lang.String phone;   public java.lang.String fax;   public java.util.Date creationDate;   public int getVersion()   {      return this.version;   }   public void setVersion( int version )   {      this.version = version;      makeDirty();   }   public float getCredit()    {      return this.credit;   }   public void setCredit( float credit )    {      this.credit = credit;      makeDirty();   }   public java.lang.String[][] getArray()    {      return this.array;   }   public byte[] getImage()    {      return this.image;   }   public float getTax()    {      return this.tax;   }   public java.lang.String getId()    {      return this.id;   }   public void setId( java.lang.String id )    {      this.id = id;      makeDirty();   }   public java.lang.String getName()    {      return this.name;   }   public void setName( java.lang.String name )    {      this.name = name;      makeDirty();   }   public java.lang.String getFirstName()    {      return this.firstName;   }   public void setFirstName( java.lang.String firstName )    {      this.firstName = firstName;      makeDirty();   }   public java.lang.String getPhone()    {      return this.phone;   }   public void setPhone( java.lang.String phone )    {      this.phone = phone;      makeDirty();   }   public java.lang.String getFax()    {      return this.fax;   }   public void setFax( java.lang.String fax )    {      this.fax = fax;      makeDirty();   }   public java.util.Date getCreationDate()    {      return this.creationDate;   }   public void setCreationDate( java.util.Date creationDate )    {      this.creationDate = creationDate;      makeDirty();   }   public boolean isModified()   {      return dirty;   }   protected void makeDirty()   {      dirty = true;   }   protected void makeClean()   {      dirty = false;   }   private boolean dirty = false;   public test.interfaces.CustomerData getData()   {      test.interfaces.CustomerData dataHolder = null;      try      {         dataHolder = new test.interfaces.CustomerData();         dataHolder.setCredit( getCredit() );         dataHolder.setArray( getArray() );         dataHolder.setImage( getImage() );         dataHolder.setTax( getTax() );         dataHolder.setId( getId() );         dataHolder.setName( getName() );         dataHolder.setFirstName( getFirstName() );         dataHolder.setPhone( getPhone() );         dataHolder.setFax( getFax() );         dataHolder.setCreationDate( getCreationDate() );         dataHolder.setVersion(getVersion());      }      catch (RuntimeException e)      {         throw new javax.ejb.EJBException(e);      }      return dataHolder;   }   public void setData( test.interfaces.CustomerData dataHolder )   {      if( getVersion() != dataHolder.getVersion() )         throw new IllegalStateException( "Wrong version. Had " + getVersion() + ", got " + dataHolder.getVersion() );      try      {         setCredit( dataHolder.getCredit() );         setName( dataHolder.getName() );         setFirstName( dataHolder.getFirstName() );         setPhone( dataHolder.getPhone() );         setFax( dataHolder.getFax() );         setCreationDate( dataHolder.getCreationDate() );      }      catch (Exception e)      {         throw new javax.ejb.EJBException(e);      }   }   public java.lang.Object ejbCreate(test.interfaces.CustomerData detail) throws javax.ejb.CreateException   {      super.ejbCreate(detail);      return getDao().create((test.ejb.CustomerBMPBean) this);   }   public java.lang.Object ejbCreate(test.interfaces.CustomerNormalValue detail) throws javax.ejb.CreateException   {      super.ejbCreate(detail);      return getDao().create((test.ejb.CustomerBMPBean) this);   }   /**    * Generated ejbPostCreate for corresponding ejbCreate method.    *    * @see #ejbCreate(test.interfaces.CustomerNormalValue detail)    */   public void ejbPostCreate(test.interfaces.CustomerNormalValue detail)   {   }   public java.util.Collection ejbFindAll() throws javax.ejb.FinderException   {      return getDao().findAll();   }   public test.interfaces.CustomerPK ejbFindByPrimaryKey(test.interfaces.CustomerPK pk) throws javax.ejb.FinderException   {      return getDao().findByPrimaryKey(pk);   }   public void ejbLoad()    {      getDao().load((test.interfaces.CustomerPK) ctx.getPrimaryKey(), this);      makeClean();   }   public void ejbStore() throws javax.ejb.EJBException   {      if (isModified())      {         super.ejbStore();         getDao().store((test.ejb.CustomerBMPBean) this);         setVersion( getVersion() + 1 );         makeClean();      }   }   public void ejbActivate() throws javax.ejb.EJBException   {      super.ejbActivate();   }   public void ejbPassivate() throws javax.ejb.EJBException   {      super.ejbPassivate();      CustomerLightValue = null;      CustomerNormalValue = null;      CustomerValue = null;   }   private javax.ejb.EntityContext ctx = null;   public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException   {      super.setEntityContext(ctx);      this.ctx = ctx;   }   public void unsetEntityContext() throws javax.ejb.EJBException   {      super.unsetEntityContext();      this.ctx = null;   }   public void ejbRemove() throws javax.ejb.EJBException, javax.ejb.RemoveException   {      super.ejbRemove();      getDao().remove((test.interfaces.CustomerPK) ctx.getPrimaryKey());   }      private static test.dao.CustomerDAO dao = null;   protected static synchronized test.dao.CustomerDAO getDao()   {      if (dao != null) {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -