正在加载图片...
编写 Entity Bean类(Part2) //Part1 public String ejbcreate(string state Code, float taxRate throws CreateException if(state Code ==null throw new Create EXception " The State Code is required. " this state code= state Code this taxRate= taxRate return null public void ejbPostCreate(String state Code, float t! public void ejbLoadot if(state Code != null 返回nul state Code. trimo CMP要求 entity bean } 类的返回值为nul public void ejbstoreot public void ejbRemove0t public void unsetEntity Contextot public void set Entity Context(Entity Context context public void ejbActivateot ublic void ejbPassivate(仆 }编写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() {} } 返回null CMP要求entity bean 类的返回值为null
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有