Vous êtes sur la page 1sur 20

Business Component Development Using EJB Technologies

Objectives

In this session, you will learn to:


Describe the auction application use cases
Define the domain objects of the auction application
Describe the implementation model for the auction system

Ver. 1.0

Slide 1 of 20

Business Component Development Using EJB Technologies


Auction Application Use Cases

The auction application has the following users:


Seller
Bidder
Administrator

The following figure shows the actors and the use cases
associated with each actor.

Ver. 1.0

Slide 2 of 20

Business Component Development Using EJB Technologies


Auction Application Use Cases (Contd.)

The use cases implemented by auction application are:


Create-auction
Close-auction
Bid-on-auction

Ver. 1.0

Slide 3 of 20

Business Component Development Using EJB Technologies


Auction Application Domain Objects

The domain objects used to model auction application are:


The Auction domain object
The AuctionUser domain object
The Bid domain object
The Item domain object
The BookItem domain object

The following figure shows the domain objects of the auction


application and the relationships among the domain objects.

Ver. 1.0

Slide 4 of 20

Business Component Development Using EJB Technologies


The Auction Domain Object

The Auction domain object represents a single online


auction within the auction application.
The following figure shows the Auction domain object.

Ver. 1.0

Slide 5 of 20

Business Component Development Using EJB Technologies


The Auction Domain Object (Contd.)

The Auction domain object contains the following attributes:


The auctionID
The startAmount
The increment
The status
The openTime
The closeTime

Each Auction domain object contains the following


relationships with the other domain objects:
The item: Represents the item for sale in the auction
The seller: Represents the AuctionUser object who is selling
the item
The bids: Represents the collection of bids placed on the
auction
Ver. 1.0

Slide 6 of 20

Business Component Development Using EJB Technologies


The AuctionUser Domain Object

The AuctionUser domain object represents either a seller or


a bidder within the auction application.
The following figure shows the AuctionUser domain object.

Ver. 1.0

Slide 7 of 20

Business Component Development Using EJB Technologies


The AuctionUser Domain Object (Contd.)

The AuctionUser domain object contains the following


attributes:
The auctionUserID
The displayName
The email

Each AuctionUser domain object contains the following


relationships with the other domain objects:
The auctions: Represents the auctions that the auction user
has participated in as a seller
The bids: Represents the collection of bids placed by the
auction user

Ver. 1.0

Slide 8 of 20

Business Component Development Using EJB Technologies


The Bid Domain Object

The Bid domain object represents a purchase offer on an


auction sale item.
The following figure shows the Bid domain object.

Ver. 1.0

Slide 9 of 20

Business Component Development Using EJB Technologies


The Bid Domain Object (Contd.)

The Bid domain object contains the following attributes:


The bidID
The amount
The bidTime
The approval

Each Bid domain object contains the following relationships


with other domain objects:
The auction: Represents the auction associated with the bid
The bidder: Represents the auction user who placed the bid

Ver. 1.0

Slide 10 of 20

Business Component Development Using EJB Technologies


The Item Domain Object

The Item domain object represents the article offered for


sale in an auction.
The following figure shows the Item domain object.

Ver. 1.0

Slide 11 of 20

Business Component Development Using EJB Technologies


The Item Domain Object (Contd.)

The Item domain object contains the following attributes:


The itemID
The description
The image

Ver. 1.0

Slide 12 of 20

Business Component Development Using EJB Technologies


The BookItem Domain Object

The BookItem domain object:


Represents the book item.
Inherits from the Item domain object.

The following figure shows the BookItem domain object.

Ver. 1.0

Slide 13 of 20

Business Component Development Using EJB Technologies


The BookItem Domain Object (Contd.)

The BookItem domain object contains the following


attributes:
The title
The author

Ver. 1.0

Slide 14 of 20

Business Component Development Using EJB Technologies


Examining the Implementation Model

The Auction system is based on the Java EE technology


and the EJB technology architecture.
The following figure shows the preliminary design of the
auction system implementation.

Ver. 1.0

Slide 15 of 20

Business Component Development Using EJB Technologies


Examining the Implementation Model (Contd.)

The middle-tier consists of a:


Business Core
Persistence Service

The middle-tier subsystems consists of the:


AuctionManager session bean class
Helper objects
Persistence entities

Ver. 1.0

Slide 16 of 20

Business Component Development Using EJB Technologies


Examining the Implementation Model (Contd.)

The following figure shows the persistence entities used by


the auction application.

Ver. 1.0

Slide 17 of 20

Business Component Development Using EJB Technologies


Examining the Implementation Model (Contd.)

The EJB container uses a persistence provider to manage


entity instances.
The persistence provider is responsible for synchronizing
the data held in entity instances it manages with data in the
EIS tier.

Ver. 1.0

Slide 18 of 20

Business Component Development Using EJB Technologies


Summary

In this session, you learned that:


The auction application has the following users:
Seller
Bidder
Administrator

The auction application implements the following use cases:


create-auction
close-auction
bid-on-auction

Ver. 1.0

Slide 19 of 20

Business Component Development Using EJB Technologies


Summary (Contd.)

The auction application is modeled using the following domain


objects:
The Auction domain object
The AuctionUser domain object
The Bid domain object
The Item domain object
The BookItem object

The auction system is based on the Java EE technology and


the EJB technology architecture.
The middle tier consists of a business core and persistence
service.
Each EJB container is associated with a persistence provider.

Ver. 1.0

Slide 20 of 20

Vous aimerez peut-être aussi