09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

General Features of <strong>Advanced</strong> <strong>Queuing</strong><br />

The order type of the Order Entry application (in schema OE) is as follows:<br />

create or replace type order_typ as object (<br />

orderno number,<br />

status varchar2(30),<br />

ordertype varchar2(30),<br />

orderregion varchar2(30),<br />

custno number,<br />

paymentmethod varchar2(30),<br />

items orderitemlist_vartyp,<br />

ccnumber varchar2(20),<br />

order_date date);<br />

create or replace type customer_typ as object (<br />

custno number,<br />

custid varchar2(20),<br />

name varchar2(100),<br />

street varchar2(100),<br />

city varchar2(30),<br />

state varchar2(2),<br />

zip number,<br />

country varchar2(100));<br />

create or replace type book_typ as object (<br />

title varchar2(100),<br />

authors varchar2(100),<br />

ISBN varchar2(20),<br />

price number);<br />

create or replace type orderitem_typ as object (<br />

quantity number,<br />

item book_typ,<br />

subtotal number);<br />

create or replace type orderitemlist_vartyp as varray (20) of<br />

orderitem_typ;<br />

The order item of the shipping application is defined as follows<br />

create or replace type order_typ_sh as object (<br />

orderno number,<br />

status varchar2(30),<br />

ordertype varchar2(30),<br />

orderregion varchar2(30),<br />

customer customer_typ_sh,<br />

paymentmethod varchar2(30),<br />

A Sample Application Using AQ 8-7

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

Saved successfully!

Ooh no, something went wrong!