The EJB JAR files include several helper classes that are used by the enterprise beans. The source code for these classes is in the following directory:
tut-install/javaeetutorial5/examples/dukesbank/dukesbank-ejb/src/java/com/sun/tutorial/ javaee/dukesbank/util/
Table 37–1 briefly describes the helper classes.
Table 37–1 Helper Classes for the Application’s Enterprise Beans
Class Name |
Description |
---|---|
AccountDetails |
Encapsulates the state of an Account instance. Returned by the getDetails method of AccountControllerBean. |
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. |