20.02.2013 Views

Connie's Convenience Store - About Peter Coad

Connie's Convenience Store - About Peter Coad

Connie's Convenience Store - About Peter Coad

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

88 Connie’s <strong>Convenience</strong> <strong>Store</strong> Working Out Data-Management Dynamics with Scenarios<br />

#80. “Establish Data Management establishing responsibilities /<br />

Object Connections” Strategy who I know (model components)<br />

• For a data management object, include an object connection (expressed as an attribute) to<br />

the problem-domain objects (all of the objects in some problem-domain class) that it is<br />

responsible for.<br />

Each DM object does the DM basics: search, save, and load.<br />

#100. “Establish Data Management establishing responsibilities /<br />

Services” Strategy what I do (model component)<br />

• For data management objects, include these services: search, save, load.<br />

Add DM objects and responsibilities to your model (Figure 1–61):<br />

DataManagement<br />

CashDrawerDM<br />

CashierDM<br />

ItemDM<br />

PaymentDM<br />

PersonDM<br />

PriceDM<br />

RegisterDM<br />

SaleDM<br />

SaleLineItemDM<br />

SessionDM<br />

<strong>Store</strong>DM<br />

TaxCategoryDM<br />

UPCDM<br />

CashierDM<br />

cashiers<br />

SessionDM<br />

sessions<br />

<strong>Store</strong>DM<br />

stores<br />

PriceDM<br />

prices<br />

ItemDM<br />

PaymentDM<br />

payments<br />

Figure 1–61: Data management objects and responsibilities.<br />

For details on using the DM architecture with a wide variety of data-management<br />

systems (spanning files, relational databases, object databases, and SOM/DSOM), see<br />

the Data Management Appendix.<br />

WORKING OUT DATA-MANAGEMENT DYNAMICS WITH SCENARIOS<br />

Here’s how.<br />

To work out dynamics with DM objects:<br />

Begin with a service in an HI component (for “save” and “load”), or<br />

sales<br />

items<br />

SaleDM<br />

SaleLineItemDM<br />

saleLineItems<br />

upcs<br />

UPCDM<br />

CashDrawerDM<br />

cashDrawers<br />

RegisterDM<br />

registers<br />

TaxCategoryDM<br />

taxCategories<br />

PersonDM<br />

persons

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!