scheduling in multi-hop wireless networks: a comprehensive survey

Post on 03-Feb-2022

2 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

������������ ��� ����������������

����������� ������

�����������

Mapping Your PL/SQL Skills to J2EE 2

��������������������������������� ��� ��������

�������

��������� ! "���#�����$����%���& !

'"���������������(��������)�#������������* ! '�+�����������������%������,�����-���$��.�%���*�/�������0 ���� 1

���������%��2�������2�����$���(�3��"��������� 1 ���������%��2�������2�����$��������"��������� 4 5������&��(�3����������������� 6

7��������#�����89����:����&������������� 88 ;���������������#�������$���������� 88

0 ���0 �-�������� 88 ��3���������2������ 8�

���������#������������#��"������������#���3��� 8� ����������(�3������� 8� 5�����;�������� 8� ;���������,�� 8�

�����������������,����������#���� 8! ��������������������� 8! ,����������#���� 8!

�33��& 8! �

Mapping Your PL/SQL Skills to J2EE 3

������������� ��� ���������������

INTRODUCTION

�<��$��%��������$��%���������%������%��&���&���=���3�����%�����3������%���&�

%�#���3��$�3<�%���������&<��������������� ��� ���#���3����:������� ����

��:�:�&�>���=��:��$���$$��%��3�����$�����3������%���&����&������%����%��

����:���<��%���&�%�#��������3��&����������%��$��������#����� �?�����<�����

�%���&����&����#���3����%���������&�>��%�������%�����������(�3�<�

5�����<������������� �

�=#�����3���&��:�������<����=������3�������%���&�����$�>���@�%������<�

���������%<��%���&��������������������>���������%�����������$���>�

���%�����������������������%>�&������������������������>�&��$��%�������

>����3������%������>�������� ��

AN EVOLUTION OF TECHNOLOGY

2�$�����%����$$����3:����������%�������><�������>��%�����:���%�����%�����%��%���

:��%��&����%������� ��2�%������������������������:������3���:����%�#����

���������+���3��&�������$��%����&�>��%��%������������������� ���������(�3��

%���:�����%������������$�3��&�����������������������<����������������=��>��

�@2����������� �"���������(�3��%���3���������������#�������$��%���#�����

$�������������������������#���3���<���>����%�������%�#��������������<�

���%���������%�����%����#��������$�3<�������������������A����B<�����������

�%�3���#������+������%�����%��������:������� ��������������C����%����

�%����� �����>%�����������������������#�����89������������&����������<�����������

�33������������������������������$$������:�%���#���������������������

���<������3����������%��������������� � �� �������� ��� 8�

“A Stranger Is a Friend You Have Yet to Meet”

"����� ��� ���#�����<�&�%�#��:��3��$�3������>��%�3��&����3��������������

#����%��&�����������:����<���������<����������������������$�#�����A �;B ��2��

&���������#�������������%�������>����%�#���%�>������>%���%���$���������

�����$�3���������3��������������<�$��3�>���<��#����<�#��>����������&�:D����<���

��3����&���$�> ����&�%�#��������������#��������E�

�������������������������������������������������8�%������>>> ����� �3����%���&��������$�3����$�89�������� ��$�

For the sake of brevity, we use the term

traditional to encompass the development

styles, languages, and concepts familiar to

users of tools such as Forms, Reports, and

Designer.

Mapping Your PL/SQL Skills to J2EE 4

�)����& ��������<������(�3����#������&=#��:����%�����&�������%����

����������������<�>��%���#��������C������ ��

����$��%���������%��$��������(�3������%��������#�����&�>��%�������������%���

�����������$������%���>@��#�������������%�����������������+��������� ������3����<�

$���%��������������=��������<���������>�<���������������������<����������������

3��������������������� �

(���+�3���<�(�3�����>��&��������&�3�������:������:��������������:���� ��

���%������:����%���������$���������������$����%>��%���:����:�%�#�� ���%����

��������������:����$�����������������3�����%�������������3� ��%�<���:����������

������������� � ���%�����#���&�������$�������:������:�� ���

�%��$��3�>����%���(�3����#���������������:���$������� ����&�����������%��

(�3������3��������<�$��3������������������������&<�����$�����������������

3����������:�$����33��������%�������:�������%������:��� �

"���:�������%��(�3��$��3�>���%������%���>@��#�����3:���<�������>��&���

$�����>��������%������������������>��%���(�3����������<�������������3��&�:�����

����� ��%���%�����������%��������$�����������3�����������$��%��$��3�>�� �

��<�%�#����>�����>��%��������(�3�<�&�������&�����������3��&�$��%��

��������$����� ����%�#����&���:������������ �

“Experience Is One Thing You Cannot Get for Nothing” – Oscar Wilde

���3������������%����������������#��������#���3��������$�3��%���:��������%��

��>@%>������+���������>��%�>%��%������+����������3��������$�3����� ��%���%���

:�������$��%����&�$�������$�������=����#���3���������������&���%����%��

�+����������������>��%��������������������:�������������������������#���3����

����%�������>��� ���%����������&����������������%��:���������������#������

$�3����������������#����#���3����$���%��%�����#������:����������&�������%��

������������� �

Looking at the Building Blocks of a Forms Application

������������%>��%�������������(�3�������������������<����=��:������>��

�%�����%��������$���(�3���������������������3���������3���� �

�$�>�����������(�3�����%��%��%������#���$�:D��������%��(�3��>�����%��<�>��%���

�%���:D��������������������������$����A7�B����3����<�A��+��$�����<��%����:+�������

:����B<�������������3�����A�%���3����%��7�����3��������%������:���B<�����

���������������<�>%��%���#���'��$�*����%��(�3 �

Mapping Your PL/SQL Skills to J2EE 5

��!��"�#������ � !�������������� ����

(�����8��%>���%���������������$������:����<����������������>��%�����������<�����

�%��#�������������������$��%�������:�������3� �

�����%�������������$���(�3�����%��������������%&������&�����������%��

��������������$��%�����������$����$�3��%�������&�������� ���%���������%�%���

�%����#�������$���3���$&�����%�������������#�F�%>�#��<���������3������������ ��

�$��%�����������$����%���������������������$�3��%����������3���<����>���:��

�������������#�����%�������$����>��%�������:�����%��:���@����:����������� ��

��3�����&<����>���:�������������������:���@����:������������������3�������

(�3� ��A�3�������%���>���$�:������:�����������&��%����3���33��:�������

��������:�%�������%�������3����>�:�������>���$$���������#����<�$���>����

�%�������������$���������%��3����>�:����3������%����%������%�>���

��3�������&�:������������>���<�:������:�%�3����>�:������������%��������

�%���+������3����������3���GB��

Mapping Your PL/SQL Skills to J2EE 6

�<��$�>���������������%�������$�3��%�����������$���<�%>�>�����(�3�

����>E�

��!����#����� �����! � ��$%������ ��&!������%������ ��������� ����

����$$���<�&������>���$��>��%������������$������:����������������� ���%���

�������������������:���:�%�$����#����������:��������������$���%�������

:��������%��������$�������������������������33���������:���� ��������

��3�����%����$����:�%�#���$��%���$��3�>���:&�����������������%������'

(���)� '% ��������'%��� <�����&�����$�������3���3����:������������

�%��%��%������������$�:�������%����*�+��!��(��!����� ������) ��"�����

�%����3������������#����������������������������������������3���<��+�������������

3����$�:���������$�3����������3���3�������:�����������<�:��������������

�����&���������$������$�3���� �

Looking at the Building Blocks of a J2EE Application

(��3�>����3����������$����#�������:�����<�>��%��%�3<���#�����������>�����

����:�������>���@��$����������$���� �7�����$��3�>���������&���#�����3�<����

����3���������������$�������������������#���3���<�:�����������$��3�>����

��#�����%����������&���$����������$���%����������������������� �����%���>���<�

�����$��3�>����3�����%�����������+������������%�����������������������

�����:�� �

Mapping Your PL/SQL Skills to J2EE 7

����������#�����89������������%���������"������������#���3����(��3�>���

A"�(B<�>%��%���3���$�����������#���3����:&�3���3�C�����%���������>���������

�%����3���3��������������������������������������$��������� �

�������"�(����:��������%������@;��>@,��������A�;,B���������������<�>%��%�

�������������%����������������%�������������%������&�����

��!��,�#��������� �*�)�'(��'-�� ������

(�����!�������������%������%������� �

• ;��>�/�%���������������������������$��� ������%��(�3�����%���������%���

3�������%��(�3��������<�>%��%����������%��7� �

• ,��������/�%��������%�������������$�>��������������%�������$����

:��>�����%��3���������%��#��>���&��� ���%���3�������%����#�������

��������������������(�3��

• �����/�%������������������>��%��������������������:����������� ��

�%��������������%��(�3�������:����>%��%��3���3�����:������#���

���������<��������������������������������������� �

Mapping Your PL/SQL Skills to J2EE 8

"�(�2�������,3���������������:���%����������%����$���%���$�3������>��%�

�������(�3��������>��>�������������������%��(�3������������"�(�2�������

,3������<�%>�#����%����������%������%�����3�%�:�������%��� ��(����

$��%������������$��������"�(<���$������%��������������� ����������� �

��������������.���

Reusing your Forms concepts in J2EE

0 ��%�#���������%������$$�$�(�3�������%>��%><�:�%�����%��������<�(�3�����

��#��������$��3�>���$��&���������������#���3��� ��0 ��%�#������

����������������"�(������%�������$�3���@#��>@�������� ����%>����%����

��������3��������%��%��E�

�%����������&���3��&�>�&��&�������#����������:��������������<���������%���

:�������������������������%����%�����%��������3������������$�����(�3��

�����������%�������>����>��%�"�(�2�������,3������<�>%��%������#����������

�%��������������"�( ��

��!����#� ��������-���� ���������)� ��������������

�������"�(�:����%�����$�������%�������$���7�������������:&���#����������&@�@���

��#���3��������%����3���3�����%��$���������&����������:&��������(�3�<�

���������������������������������������������������%������>>> ����� �3����%���&��������D��#������������������89��"�(H#��#��> ��$�

Mapping Your PL/SQL Skills to J2EE 9

$���������&�>��%�>%��%�&�����������&�$�3�����<�>��%��������:����������#����������

������&�����������$������������� �

)>�#��<��������"�(�����=��D��������%��� �����$������������#���$�����������

$���������&��%�����#���&��#���3����>����%���&�����%�#������:�&�>��%���

$������%��(�3��>��� �

,��������%�������(�3�<��%�������:����%��������������������������&<���#�������%��

3����������%�������&��������:�������>�������������������������:��������������

:����������� ��)>�#��<��+����������%>���%���>%�����%�������&����:�������

���������������>��%��������3������3�����%����3�<�>��$����/���<���)�0��������!��

������������������%����������%��� ��"��:#����+�3��������%��:�����������

�#�����������3��&���>%����33������3�����3��������%��������$�9����9I ��

0 %����&�3�&�#��>��%�������������$$������>�&��A������&���������3��&��������%��

7J<�$����������<����%>�������������3��B<��%��������&����:�������������>�&��

������� ���

���%���������������������&������������$��%���$��������$���$��3�>�����

�>�>��%�#�����:D�����%����������������:������������&<�>%��%����������%��

:����������<��������%���:D�����%����������������#��>����%���$����������:�������

�����&�����#�����:��������������� ���%�����������%��������������������(�����K �

� ��!��1�#��������� �&!������-������ �������)���� !� ���2��������� ��� ����

Mapping Your PL/SQL Skills to J2EE 10

0 %�����������"�(���#��������%����$����%������<��������������$��3�>���

>%��%������&������������������$�3��������(�3����#������<�����������%���

$��3�>��������+�������������#������%������$�����������$�����������%���(�3��

���������#��� �

�<��%���%����3�������3�����������$��������%��$��3�>��������

• �%��������� ������)!����#������%���������������������:�������������

����:&��%���3����������������� �

• �%��� � ����/� �������������������&��������:������:��������3���3�����

#����������������%�������:�����%����� �

• �%��������/� ���������������� �?��&�:����������3:���$������&����

�����&�:D�����

"���$�����&<������&���$��3�>�����������3��������&����%��(�3���������3<�

�%�����#�����89������A�������������#���3������#���3���B���#�����������3�

������������&<�����<�����3���������&��:�������:D���� �

��!��3�#��������� �&!������-������ ���������)����4������"���

Mapping Your PL/SQL Skills to J2EE 11

(�����4��%>���%�������&���������&�:D�����A�3����������B�>��%��%���������:����

�%���3����������&����%�������&�����3�������������:��� ���%���������%����%����

#��>�:D�����A�3�;��><�����;��><������3�����;��>B<�>%��%���#������$$������

#��>��$��%������������:��� �

USING JDEVELOPER10G TO BUILD YOUR APPLICATIONS

�<��������"�(���#�������������$������<����$�>%��%��+%�:��������������

$�3���������%���+����������(�3����#����� ��2���%��=���������3� �0 %����:��

�%���+���������$�:�������&������������E�

Visual and Productive Interface Design

�����������������0 ���0 �-���#���3�������$���3���������%��>�&�&�:������

(�3������������<�����������$���3���������>�������%��>�&�&�>���:����

���#�����89������������� �

�%��������3��&���3����������:��>����(�3���������#�����89��������3��$�7��

��#���3��� �����������<����#�����89����#�����������$����%�����������

�������:#������:�&����%���$$���������������(�3� �����#�����89��

��#������%���:����&�������������%��>�����������<����%�>���%��:�>���@:�����)�� �

$��������<������#��������$�����$��>������������3:������#���� �

��!��5�#�(��!���������������� ����4������"���

WYSIWIG Editing

���#�����89����#������%����3��7����#���3�����+��������������������$��%��7��

���%���&���� ����(�����L��%>��%>��%��������#�������#�����������$����&����

���%��7���3������<���������&����������$���������������:�����%����$�������

���<��������������������������$�����>�������&�:�������$�����������:������

#����������� ���

7�����3���������:��������������������<�����C��<����������� ��(��)�� �7��

��#���3���<���&����%���������:������������������������������&�����&�����������

��������������%����%�������$�>�����:��#�����&�'%�����*�������%�������$�>�

������3 �

Mapping Your PL/SQL Skills to J2EE 12

Simple Data Binding

0 ��%�#���%>��%>��%����#���3����$��%��7�������%��:�������3��������:��

������&����������<�:������������#�����&��3��������%����%�����3�����������:��

�����&�:�� �����#�����89�������������"�(���#���������3���������������#��

:�������3��%����3�#����%�������,������������ ���%�������,�������������

�3��������>�����������������

• "�%������%�����������&�$��#����:���:�������:D�����

• "�����>�������$������������#��������3������%���&������������$����

��#���:�������:D�����������������7�������

�%���������%�$�>���������:��������>�%�������������%���������������:��>�����%��

7�������%��:�������3�����%��%���3����#������������������$�������������

��������� �

Declarative and Intuitive Application Development

�%���:����&������������#��&�����:���������������������$�3������$������$��������

(�3� �����#�����89�������������"�(�������#�����%�������������#��$����������

>���������>%���%���$����������3����������3��$���������%���� �����$�;�����

A �;�B<�?��&�:&��+�3��������������������&����%�����A,��B ��(���+�3�����

Setting a Format Mask

"�������#��&���3�������������������(�3���������������$�3���3������������3�:&�

�����������%�����3��������������%�� ���� �*����������&�����%��������&�������� �����

���#�����89��������D���������&����3��&���������%�������:������%��:D�������������%��

���� �������& �

Range Validation

�������(�3����3����������#��������<����>������&��%��6���� ������)�����2��� �

�����)�#������:������$��������3 �����#�����89�������������"�(���#������

���%���#����������������3<����>����&�����$����#���������������������������

���������������$����������?������#����<������������>����&������������#��&�

��$�����%�������3���������������$�����%��+�������$��%��#������������ �

Validation Code

���������������#�����������������#��>�&�$���$������#������������<��%��(�3��

$��3�>���������#�����#����������������� ���%����'(���)� '% ����������$��������

������������#����������#��������������>��3����3���+�#����������������:��

���� �

�������"�(��������#�����89����#�����+����&��%����3��$���������&<���#��������

� ��)�����)� ��0�>%��%����>��&��������$&��%����3��$���3��%����:���+������

�����#����������%��� �

Mapping Your PL/SQL Skills to J2EE 13

Transactional and Coordination Events

��>��������:��$�3������>��%��%��$�����%����%��(�3��$��3�>���3���%�����%��

����������$������:��>������������:�������������:��>�����%��(�3������%��

����:��� �

Transactional Triggers

���3��&������<��%����$��������������$�(�3��������?����$��&������������ ��

)>�#��<��3���3������>�����������&�����3�����%��������������%��%��%�����

$������������%������'%��� <���� '$�)� <�������'�� 0�����3��:����$�> ����>����

�33�������&������%����3��$����������>���������#�����89�������������"�( �

��3��&�:&�#�����������3��%�����%�������&�:D����&��������������%���>����

�+��������%�������������������� ��

// Overrides default doDML() Behavior of Entity Object� protected void doDML(int operation, TransactionEvent e) { if (operation == DML_INSERT) { /* pre-insert */ super.doDML(operation, e); /* on-insert */ /* post-insert */ } if (operation == DML_UPDATE) { /* pre-update */ super.doDML(operation, e); /* on-update */ /* post-update */ } // do the same for deletes }�

Coordination Events

�$�&���������(�3��%�������������3���������������������%��<�&�>���������%�����

�3:���$���$�������������������������>��%������%��������������%��3����������

�������:���� ���

�%���:�%�#�������3���3������:&���$�����%��%��%�����$���#��>����������%>�����

(�����4 �

SUMMARY

���>�����%����3����:�������%��>����%�$��������&�������&�������<������������

�����#�����89�!������������"�(�����?����&������C���%����%����������������

���%�������>��%�>%��%�&�����:��������$� �

�������������������������������������������������!�%������>>> ����� �3����%���&��������D��#�����+ %�3��

Mapping Your PL/SQL Skills to J2EE 14

�%�����#�����89��������#���������+���������$��3�&���������&��(�3�@

�%������������������$��������������#���3�����������������<�>�C����<�#�����

�������������#��������� ������%����+�������%����������3�:&�����������$���������%�

���,��,��%<�������3������<���$�����<������$�>�������33���<�:���@���

������������������������@����������&3����$������������<�����3����&���$�> ���

"������������>��%�����������%���������<������:��<����3�C�:��<������+�����:�� ���

0 ��%��������"�(�&�%�#�����3:���$�������$���������#���3���<����$�

>%��%�$$����&�������:�����#���3���3������������C�����%������@%��������

$���������&��%���&=���$�3������>��%�����������(�3� �

"��&�:�������#�����������������������<�&�>����$�����%���&���+���������>��%�

����������������������������&������������ ���%�����������������#����&�3���

������#����#���3������#���3����:���������������������&�$�3��������&����

��(�3����#����� ��"����������%���������%��%���3������������#���������&���

�������$����������:���%�����#���3�����33���& ��

Oracle Tools Direction: Mapping Your PL/SQL Skills to J2EE

December 2004

Author: Grant Ronald

Contributing Authors:Steve Muench

Oracle Corporation

World Headquarters

500 Oracle Parkway

Redwood Shores, CA 94065

U.S.A.

Worldwide Inquiries:

Phone: +1.650.506.7000

Fax: +1.650.506.7200

www.oracle.com

Copyright © 2003, Oracle. All rights reserved.

This document is provided for information purposes only

and the contents hereof are subject to change without notice.

This document is not warranted to be error-free, nor subject to

any other warranties or conditions, whether expressed orally

or implied in law, including implied warranties and conditions of

merchantability or fitness for a particular purpose. We specifically

disclaim any liability with respect to this document and no

contractual obligations are formed either directly or indirectly

by this document. This document may not be reproduced or

transmitted in any form or by any means, electronic or mechanical,

for any purpose, without our prior written permission.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective owners.

top related