Database Tables
Database Tables
TABLE 371
Helper Classes for the Application's Enterprise Beans
(Continued)
Class Name
Description
CustomerDetails
Encapsulates the state of a Customer instance. Returned by the getDetails
method of CustomerControllerBean.
Debug
Has simple methods for printing a debugging message from an enterprise bean.
These messages appear on the standard output of the Application Server when it's
run with the --verbose option and in the server log.
DomainUtil
Contains validation methods: getAccountTypes, checkAccountType, and
isCreditAccount
.
TxDetails
Encapsulates the state of a Tx instance. Returned by the getDetails method of
TxControllerBean
.
Database Tables
A database table of the Duke's Bank application can be categorized by its purpose: representing
business entities.
Tables Representing Business Entities
shows the relationships between the database tables. The bank_customer and
bank_account
tables have a many-to-many relationship: A customer can have several bank
accounts, and each account can be owned by more than one customer. This many-to-many
relationship is implemented by the crossreference table named
bank_customer_account_xref
. The tables named bank_account and bank_tx have a
one-to-many relationship: A bank account can have many transactions, but each transaction
refers to a single account.
Enterprise Beans
The Java EE 5 Tutorial · September 2007
1062