正在加载图片...
编写 Entity Bean类(Part2) //Part1 public String ejbCreate( String stateCode, float taxRate) throws Create Exception if(state Code == nullR throw new Create Exception( The State Code is required. )i this state Code s statecode: this taxRate s taxRate: return null public void ejbPostcreate(String state Code, public void ejbload ot if(state Code != null) 设置属性值 state Code. trim o; 根据客户端传过来的参 数设置属性值 public void ejbstore仆 public void ejbRemove0t public void unsetEntity Contextot] public void setEntity Context(Entity Context public void ejbActivate(& public void ejbPassivateo]编写Entity Bean类(Part 2) //Part1 public String ejbCreate(String stateCode, float taxRate) throws CreateException{ if(stateCode == null){ throw new CreateException("The State Code is required."); } this.stateCode = stateCode; this.taxRate = taxRate; return null; } public void ejbPostCreate(String stateCode, float taxRate){} public void ejbLoad(){ if(stateCode != null) stateCode.trim(); } public void ejbStore() {} public void ejbRemove() {} public void unsetEntityContext() {} public void setEntityContext(EntityContext context) {} public void ejbActivate() {} public void ejbPassivate() {} } 设置属性值 根据客户端传过来的参 数设置属性值
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有