1 15 package org.apache.tapestry.vlib.ejb.impl; 16 17 import java.rmi.RemoteException ; 18 19 import javax.ejb.CreateException ; 20 21 33 34 public abstract class PublisherBean extends AbstractEntityBean 35 { 36 public abstract void setPublisherId(Integer value); 37 38 public abstract Integer getPublisherId(); 39 40 public abstract String getName(); 41 42 public abstract void setName(String value); 43 44 protected String [] getAttributePropertyNames() 45 { 46 return new String [] { "name" }; 47 } 48 49 public Integer ejbCreate(String name) throws CreateException , RemoteException 50 { 51 setPublisherId(allocateKey()); 52 setName(name); 53 54 return null; 55 } 56 57 public void ejbPostCreate(String name) 58 { 59 } 61 } | Popular Tags |