1 package league.ejb.entity; 2 import java.math.BigDecimal ; 3 4 9 public abstract class ResultBean implements javax.ejb.EntityBean , league.ejb.entity.ResultLocalBusiness { 10 private javax.ejb.EntityContext context; 11 12 18 public void setEntityContext(javax.ejb.EntityContext aContext) { 19 context = aContext; 20 } 21 22 25 public void ejbActivate() { 26 27 } 28 29 32 public void ejbPassivate() { 33 34 } 35 36 39 public void ejbRemove() { 40 41 } 42 43 46 public void unsetEntityContext() { 47 context = null; 48 } 49 50 53 public void ejbLoad() { 54 55 } 56 57 60 public void ejbStore() { 61 62 } 63 65 67 public abstract java.math.BigDecimal getScore(); 68 public abstract void setScore(java.math.BigDecimal score); 69 70 public abstract java.math.BigDecimal getPoints(); 71 public abstract void setPoints(java.math.BigDecimal points); 72 73 public abstract java.math.BigDecimal getTeamId(); 74 public abstract void setTeamId(java.math.BigDecimal teamId); 75 76 public abstract java.math.BigDecimal getMatchId(); 77 public abstract void setMatchId(java.math.BigDecimal matchId); 78 79 public abstract league.ejb.entity.MatchLocal getMatch(); 80 public abstract void setMatch(league.ejb.entity.MatchLocal match); 81 82 public abstract league.ejb.entity.TeamLocal getTeam(); 83 public abstract void setTeam(league.ejb.entity.TeamLocal team); 84 85 87 public league.ejb.entity.ResultPK ejbCreate(java.math.BigDecimal score, java.math.BigDecimal points, Integer teamId, Integer matchId) throws javax.ejb.CreateException { 88 if (score == null) { 89 throw new javax.ejb.CreateException ("The field \"score\" must not be null"); 90 } 91 if (points == null) { 92 throw new javax.ejb.CreateException ("The field \"points\" must not be null"); 93 } 94 if (teamId == null) { 95 throw new javax.ejb.CreateException ("The field \"teamId\" must not be null"); 96 } 97 if (matchId == null) { 98 throw new javax.ejb.CreateException ("The field \"matchId\" must not be null"); 99 } 100 101 setScore(score); 103 setPoints(points); 104 setTeamId(new BigDecimal (teamId.intValue())); 105 setMatchId(new BigDecimal (matchId.intValue())); 106 107 return null; 108 } 109 110 public void ejbPostCreate(java.math.BigDecimal score, java.math.BigDecimal points, Integer teamId, Integer matchId) { 111 113 } 114 } 115 | Popular Tags |