正在加载图片...
编写 Entity Bean类(Part2) //Part1 public String ejbCreate(String state Code, float taxR throws CreateException if(state Code ==null 激活与钝化: throw new CreateExceptio 同 Session Bean中激活 与钝化方法的含义与用法 this state code= state Code this. taxRate taxRate return null public void ejbPostCreate(String stateCode, float taxRate)3 public void ejbLoadot if(state Code!= nyk state Code. trimo) } public void ejbstoreo public void ejbRemoye00 public void unsetEntity Context(i public void set En dity Context(Entity Context context)& public void ejbActivate t public void ejbPassivate O }编写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() {} } 激活与钝化: 同Session Bean中激活 与钝化方法的含义与用法
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有