|
|
The MIMER_STORE_WEB Schema
This schema provides some of the SQL functionality required to create a Web-based application to order items.
The ident-name in the
AUTHORIZATIONclause is currently restricted to be the name of the current ident.The basic idea behind a Web application would be two tabs, one for Music and the other for Books. The relevant
SEARCHroutine provides a list of matches (one of the details returned is theITEM_ID). The user would then have the ability to drill down to display further information (useMIMER_STORE_MUSIC.TitleDetailsandMIMER_STORE_MUSIC.TrackDetailsfor music items andMIMER_STORE_BOOK.TITLE_DETAILSfor book items.If an item is selected for purchase (the quantity should be prompted for) and
MIMER_STORE_WEB.ADD_TO_BASKETused to order the item (a blankSESSION_IDdefines a new session). Once a session has been created the basket can be viewed usingMIMER_STORE_WEB.VIEW_BASKET.When an order has been completed the user needs to be identified by their e-mail and password (
MIMER_STORE_WEB.VALIDATE_CUSTOMER) and then a call should be made toMIMER_STORE_WEB.PLACE_ORDER.Tables
Table name
Description
SESSIONS Maps an external session identifier with an internal order identifier.Keeps track of the date/time that the 'basket' was last accessed.PSM Routines
Triggers
There is a statement trigger that will fire after an update to the
SESSIONStable. The trigger is designed to prevent any changes to the values of theSESSION_NOandORDER_IDcolumns. This demonstrates that a trigger can be used to abort an SQL update operation.Idents
A synonym is created by
MIMER_STOREfor theSESSIONStables in theMIMER_STORE_WEBschema.A new user ident,
MIMER_WEB, is created to allow Web-applications execute privilege on certain of the PSM routines.
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|