Table 5-1 summarizes the database access calls in the
SavingsAccountBean
class. The business methods of the SavingsAccountBean
class are absent from the preceding table because they do not access the database. Instead, these business methods update the instance variables, which are written to the database when the EJB container calls ejbStore
. Another developer might have chosen to access the database in the business methods of the SavingsAccountBean
class. This choice is one of those design decisions that depend on the specific needs of your application.Method | SQL Statement |
---|---|
ejbCreate | INSERT |
ejbFindByPrimaryKey | SELECT |
ejbFindByLastName | SELECT |
ejbFindInRange | SELECT |
ejbLoad | SELECT |
ejbRemove | DELETE |
ejbStore | UPDATE |
No comments:
Post a Comment