1 package league.ejb.entity; 2 3 import javax.ejb.*; 4 5 10 public abstract class PlaceInGroupBean implements javax.ejb.EntityBean , league.ejb.entity.PlaceInGroupLocalBusiness { 11 private javax.ejb.EntityContext context; 12 13 19 public void setEntityContext(javax.ejb.EntityContext aContext) { 20 context = aContext; 21 } 22 23 26 public void ejbActivate() { 27 28 } 29 30 33 public void ejbPassivate() { 34 35 } 36 37 40 public void ejbRemove() { 41 42 } 43 44 47 public void unsetEntityContext() { 48 context = null; 49 } 50 51 54 public void ejbLoad() { 55 56 } 57 58 61 public void ejbStore() { 62 63 } 64 66 68 public abstract java.math.BigDecimal getPlace(); 69 public abstract void setPlace(java.math.BigDecimal place); 70 71 public abstract java.math.BigDecimal getGroupId(); 72 public abstract void setGroupId(java.math.BigDecimal groupId); 73 74 public abstract java.math.BigDecimal getTeamId(); 75 public abstract void setTeamId(java.math.BigDecimal teamId); 76 77 public abstract league.ejb.entity.GroupsLocal getGroups(); 78 public abstract void setGroups(league.ejb.entity.GroupsLocal groups); 79 80 public abstract league.ejb.entity.TeamLocal getTeam(); 81 public abstract void setTeam(league.ejb.entity.TeamLocal team); 82 83 85 public league.ejb.entity.PlaceInGroupPK ejbCreate(java.math.BigDecimal place, java.math.BigDecimal groupId, java.math.BigDecimal teamId, league.ejb.entity.GroupsLocal groups, league.ejb.entity.TeamLocal team) throws javax.ejb.CreateException { 86 if (place == null) { 87 throw new javax.ejb.CreateException ("The field \"place\" must not be null"); 88 } 89 if (groupId == null) { 90 throw new javax.ejb.CreateException ("The field \"groupId\" must not be null"); 91 } 92 if (teamId == null) { 93 throw new javax.ejb.CreateException ("The field \"teamId\" must not be null"); 94 } 95 if (groups == null) { 96 throw new javax.ejb.CreateException ("The field \"groups\" must not be null"); 97 } 98 if (team == null) { 99 throw new javax.ejb.CreateException ("The field \"team\" must not be null"); 100 } 101 102 setPlace(place); 104 setGroupId(groupId); 105 setTeamId(teamId); 106 107 return null; 108 } 109 110 public void ejbPostCreate(java.math.BigDecimal place, java.math.BigDecimal groupId, java.math.BigDecimal teamId, league.ejb.entity.GroupsLocal groups, league.ejb.entity.TeamLocal team) { 111 setGroups(groups); 113 setTeam(team); 114 115 116 } 117 118 public league.ejb.entity.PlaceInGroupPK ejbCreate(league.ejb.entity.GroupsLocal gl, league.ejb.entity.TeamLocal tl, java.lang.Integer place) throws javax.ejb.CreateException { 119 setPlace(new java.math.BigDecimal (place.intValue())); 121 setGroupId(gl.getId()); 122 setTeamId(tl.getId()); 123 return null; 124 } 125 126 public void ejbPostCreate(league.ejb.entity.GroupsLocal gl, league.ejb.entity.TeamLocal tl, java.lang.Integer place) throws javax.ejb.CreateException { 127 } 131 132 public abstract java.lang.Integer getStartPoints(); 133 134 public abstract void setStartPoints(java.lang.Integer startPoints); 135 } 136 | Popular Tags |