Repository Use Cases and CRUD - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

Repository Use Cases and CRUD

Description:

Repository Use Cases and CRUD * CMSC 345, Version 1/11 Repository Use Cases There are four main operations that are commonly performed on repositories, whether they ... – PowerPoint PPT presentation

Number of Views:100
Avg rating:3.0/5.0
Slides: 7
Provided by: Susan738
Category:
Tags: crud | cases | crud | repository | use

less

Transcript and Presenter's Notes

Title: Repository Use Cases and CRUD


1
Repository Use Casesand CRUD
2
Repository Use Cases
  • There are four main operations that are commonly
    performed on repositories, whether they are files
    or true databases
  • Create create and add an item to the repository
  • Read view a repository item
  • Update edit a repository item
  • Delete remove a repository item
  • These operations are collectively known as CRUD.
  • In most applications, there will be at least one
    CRUD use case. For example, this semesters
    project may include a CRUD use case for
    maintaining the repository of CS, IS, and GEP
    courses. You may also have other repositories
    that require maintenance.
  • The following slides show a suggested way in
    which you can handle CRUD use cases in your SRS.

3
Suggested Approach for Our Class
  • Have a top-level use case called something like
    Maintain X Repository (e.g., Maintain Accounts
    Repository)
  • Write a corresponding specification for this use
    case. The use case should include viewing the
    repository as one of the steps in the Main
    Scenario.
  • Draw a sub-use case diagram for Maintain X
    Repository that has three extensions for
  • creating an item (e.g., Create Account) in the X
    repository,
  • editing an item in the X repository, and
  • deleting an item from the X repository.
  • For our class, you do not need to have a
    specification for each of these three extended
    use cases. (In industry, these might need to be
    written.)

4
system name
Top-level use case diagram with a CRUD use case
1 Use Case 1 Name
2 Use Case 2 Name
3 Maintain X Repository
n Use Case n Name
CRUD use case
5
CRUD Use Case Specification
Number 3 3
Name Maintain X Repository Maintain X Repository
Summary User adds to, edits, or deletes from X repository User adds to, edits, or deletes from X repository
Priority 5 5
Preconditions precondition precondition
Postconditions postcondition postcondition
Primary Actor(s) role name role name
Secondary Actor(s) external system name external system name
Trigger User chooses to maintain X repository User chooses to maintain X repository
Main Scenario Step Action
1 System displays repository
2 User performs repository operation
3 System updates repository
Extensions Step Branching Action
2a Use Case 3a Create Y
2b Use Case 3b Edit Y
2c Use Case 3c Delete Y
Open Issues open issue
6
CRUD Sub-Use Case Diagram
3c Delete Y
3 Maintain X Repository
3b Edit Y
3a Create Y
Y is one of the items in the X repository
Write a Comment
User Comments (0)
About PowerShow.com