1 15 package org.apache.tapestry.vlib.ejb.impl; 16 17 import java.rmi.RemoteException ; 18 import java.sql.Timestamp ; 19 import java.util.Map ; 20 21 import javax.ejb.CreateException ; 22 23 35 36 public abstract class PersonBean extends AbstractEntityBean 37 { 38 39 protected String [] getAttributePropertyNames() 40 { 41 return new String [] { 42 "firstName", 43 "lastName", 44 "email", 45 "password", 46 "lockedOut", 47 "admin", 48 "lastAccess" }; 49 } 50 51 public abstract void setPersonId(Integer value); 52 53 public abstract Integer getPersonId(); 54 55 public abstract void setEmail(String value); 56 57 public abstract String getEmail(); 58 59 public abstract void setFirstName(String value); 60 61 public abstract String getFirstName(); 62 63 public abstract void setLastName(String value); 64 65 public abstract String getLastName(); 66 67 public abstract void setPassword(String value); 68 69 public abstract String getPassword(); 70 71 public abstract void setLockedOut(boolean value); 72 73 public abstract boolean getLockedOut(); 74 75 public abstract void setAdmin(boolean value); 76 77 public abstract boolean getAdmin(); 78 79 public abstract void setLastAccess(Timestamp value); 80 81 public abstract Timestamp getLastAccess(); 82 83 public Integer ejbCreate(Map attributes) throws CreateException , RemoteException 84 { 85 updateEntityAttributes(attributes); 86 87 setPersonId(allocateKey()); 88 89 return null; 90 } 91 92 public void ejbPostCreate(Map attributes) 93 { 94 } 96 } | Popular Tags |