Fig22. Session beans
package: class diagram
This package contains seven classes:
TrainingFacade, PrivilegeFacade, Personfacade, ResponseFacade,
Knowledgefacade, DocumentFacade and QuestionFacade. Each one
appropriate with an entity class (classes of models package) and a generic
abstract class: AbstractFacade. Each one of these classes has only one
EntityManager attribute; it is associated with a persistence context that is a
set of entity instances in which for any persistent entity identity there is a
unique entity instance. Within the persistence context, the entity instances
and their lifecycle are managed. The EntityManager API is used to
create and remove persistent entity instances, to find entities by their
primary key, and to query over entities.
Each class of sessionbean package has getEntityManager method
that returns an EntityManager, a constructor and extends methods of
AbstractFacade class. They are create, edit, remove, find, findAll, findAll,
findRange and count that presents CRUD functionalities necessary to communicate
with data base.
3.3.4.3 Controller package
This layer supports the
management of interaction events between client interfaces
and persistence layer. It receives all user requests and
performs the appropriate actions. This
module contains the following classes:
|