bcd session 02

Upload: poornimarachiraju

Post on 02-Jun-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 BCD Session 02

    1/20

    Slide 1 of 20Ver. 1.0

    Business Component Development Using EJB Technologies

    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

    Objectives

  • 8/10/2019 BCD Session 02

    2/20

    Slide 2 of 20Ver. 1.0

    Business Component Development Using EJB Technologies

    The auction application has the following users:

    Seller

    Bidder

    Administrator

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

    Auction Application Use Cases

  • 8/10/2019 BCD Session 02

    3/20

    Slide 3 of 20Ver. 1.0

    Business Component Development Using EJB Technologies

    The use cases implemented by auction application are:

    Create-auction

    Close-auction

    Bid-on-auction

    Auction Application Use Cases (Contd.)

  • 8/10/2019 BCD Session 02

    4/20

  • 8/10/2019 BCD Session 02

    5/20

    Slide 5 of 20Ver. 1.0

    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.

  • 8/10/2019 BCD Session 02

    6/20

    Slide 6 of 20Ver. 1.0

    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 statusThe 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 auctionThe seller: Represents the AuctionUser object who is selling

    the item

    The bids: Represents the collection of bids placed on the

    auction

  • 8/10/2019 BCD Session 02

    7/20Slide 7 of 20Ver. 1.0

    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.

  • 8/10/2019 BCD Session 02

    8/20Slide 8 of 20Ver. 1.0

    Business Component Development Using EJB Technologies

    The AuctionUser Domain Object (Contd.)

    The AuctionUser domain object contains the following

    attributes:

    The auctionUserID

    The displayName

    The emailEach 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 theauction user

  • 8/10/2019 BCD Session 02

    9/20Slide 9 of 20Ver. 1.0

    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.

  • 8/10/2019 BCD Session 02

    10/20Slide 10 of 20Ver. 1.0

    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 approvalEach 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

  • 8/10/2019 BCD Session 02

    11/20Slide 11 of 20Ver. 1.0

    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.

  • 8/10/2019 BCD Session 02

    12/20Slide 12 of 20Ver. 1.0

    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

  • 8/10/2019 BCD Session 02

    13/20Slide 13 of 20Ver. 1.0

    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.

  • 8/10/2019 BCD Session 02

    14/20Slide 14 of 20Ver. 1.0

    Business Component Development Using EJB Technologies

    The BookItem Domain Object (Contd.)

    The BookItem domain object contains the following

    attributes:

    The title

    The author

  • 8/10/2019 BCD Session 02

    15/20Slide 15 of 20Ver. 1.0

    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.

  • 8/10/2019 BCD Session 02

    16/20Slide 16 of 20Ver. 1.0

    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 classHelper objects

    Persistence entities

  • 8/10/2019 BCD Session 02

    17/20Slide 17 of 20Ver. 1.0

    Business Component Development Using EJB Technologies

    Examining the Implementation Model (Contd.)

    The following figure shows the persistence entities used by

    the auction application.

  • 8/10/2019 BCD Session 02

    18/20Slide 18 of 20Ver. 1.0

    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.

  • 8/10/2019 BCD Session 02

    19/20Slide 19 of 20Ver. 1.0

    Business Component Development Using EJB Technologies

    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

    Summary

  • 8/10/2019 BCD Session 02

    20/20Slid 20 f 20V 1 0

    Business Component Development Using EJB Technologies

    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 objectThe 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.

    Summary (Contd.)