Copyright Ó Oracle Corporation, 1999. All rights reserved. 2222 Sharing Objects and Code.

Slides:



Advertisements
Similar presentations
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Advertisements

13 Copyright © 2004, Oracle. All rights reserved. Introduction to Triggers.
3 Copyright © 2004, Oracle. All rights reserved. Creating Packages.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
7 Copyright © 2004, Oracle. All rights reserved. Working with Text Items.
9 Copyright © 2004, Oracle. All rights reserved. Creating Additional Input Items.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Eyad Alshareef 1 Creating Custom Forms Part A. 2Eyad Alshareef Data Block and Custom Forms Data block form Data block form Based on data blocks that are.
Introduction To Form Builder
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
1 Chapter 5: Introduction To Form Builder. 2 Forms  Why Do We Use Form Builder?  Why Don’t We Use SQL Only?!
14 Copyright © 2004, Oracle. All rights reserved. Producing Triggers.
23 Copyright © 2004, Oracle. All rights reserved. Sharing Objects and Code.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
2 Copyright © 2009, Oracle. All rights reserved. Getting Started with Warehouse Builder.
Copyright Ó Oracle Corporation, All rights reserved. 55 Working with Data Blocks and Frames.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
Benefits of PL/SQL. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –List and explain the benefits of PL/SQL –List.
Copyright  Oracle Corporation, All rights reserved. 5 CMIS Powell Oracle Designer: Design Editor and Building the Database and Table API CMIS.
An Object-Oriented Approach to Programming Logic and Design
24 Copyright © 2004, Oracle. All rights reserved. Using WebUtil to Interact with the Client.
Forms - An Overview of Oracle Form Builder v.6.0 Abhishek Parag Prashant Arun.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Copyright Ó Oracle Corporation, All rights reserved. 1 Introduction to Oracle Developer.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
Teacher’s Assessment Assistant Worksheet Builder Starting the Program
Copyright Ó Oracle Corporation, All rights reserved. 22 Running a Form Builder Application.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
1 R. Ching, Ph.D. MIS Area California State University, Sacramento Week 2 February 1 PL/SQLPL/SQL Creating a FormCreating a Form.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
1 Chapter 12: Form Builder Objects and Flexible Code.
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
12 Copyright © 2004, Oracle. All rights reserved. Understanding and Influencing the PL/SQL Compiler.
Copyright Ó Oracle Corporation, All rights reserved Producing Triggers.
Copyright Ó Oracle Corporation, All rights reserved Working with Other Canvases.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
6 Copyright © 2009, Oracle. All rights reserved. Using the Data Transformation Operators.
12 Copyright © 2009, Oracle. All rights reserved. Managing Backups, Development Changes, and Security.
Oracle Forms Oracle Forms Builder provides various tools, which have powerful Graphical User Interfaces (GUI's) to design such forms. All objects, properties,
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
25 Copyright © 2004, Oracle. All rights reserved. Introducing Multiple Form Applications.
Copyright Ó Oracle Corporation, All rights reserved Writing Flexible Code.
Copyright Ó Oracle Corporation, All rights reserved Debugging Triggers.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
2 Copyright © 2004, Oracle. All rights reserved. Running a Forms Developer Application.
Copyright Ó Oracle Corporation, All rights reserved. 88 Creating Additional Input Items.
1 Chapter 6: Creating Oracle Data Block Forms. 2 Forms  Application with a graphical user interface that looks like a paper form  Used to insert, update,
16 Copyright © 2004, Oracle. All rights reserved. Building ADF UIX View Components.
6 Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Site Hub User Role – Managing Sites.
Headstart Designer R Pasi Lehtinen TKP Tieto Oy
Forms Concepts Triggers Fired when Internal/External events occur
Working with Data Blocks and Frames
Working in the Forms Developer Environment
Creating a Basic Form Module
Working in the Form Builder Environment
Introduction to Triggers
Lecture on Oracle Forms
UNIT - V STORED PROCEDURE.
Chapter 6: Creating Custom Forms
Producing Triggers Schedule: Timing Topic 40 minutes Lecture
Chapter 8: Creating An Integrated Database Application
Creating Additional Input Items
Presentation transcript:

Copyright Ó Oracle Corporation, All rights reserved Sharing Objects and Code

22-2 Copyright Ó Oracle Corporation, All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe the various methods for reusing objects and code Inherit properties from property classes Group related objects for reuse Reuse objects from an object library Reuse PL/SQL code After completing this lesson, you should be able to do the following: Describe the various methods for reusing objects and code Inherit properties from property classes Group related objects for reuse Reuse objects from an object library Reuse PL/SQL code

22-3 Copyright Ó Oracle Corporation, All rights reserved. Sharing and Reusing Code Increases productivity Decreases maintenance Increases modularity Maintains standards Increases productivity Decreases maintenance Increases modularity Maintains standards

22-4 Copyright Ó Oracle Corporation, All rights reserved. Property Classes LOV properties Block properties Canvas properties Relation properties Item properties

22-5 Copyright Ó Oracle Corporation, All rights reserved. Property Class Icons Add Property Inherit Property Property Class Delete Property

22-6 Copyright Ó Oracle Corporation, All rights reserved. Property palette Default property Inherited and Variant Properties Default property Property palette Default property Changed propertyChange Default property Property class Apply Property palette Inherited property Property palette Inherited property Variant property Change Inherited property Inherit

22-7 Copyright Ó Oracle Corporation, All rights reserved. Inheriting Properties Set the Subclass Information property. Convert an inherited property to a variant property. Convert a variant property to an inherited property. Set the Subclass Information property. Convert an inherited property to a variant property. Convert a variant property to an inherited property.

22-8 Copyright Ó Oracle Corporation, All rights reserved. Object Group Is a logical container Enables you to: –Group related objects –Copy multiple objects in one operation Is a logical container Enables you to: –Group related objects –Copy multiple objects in one operation

22-9 Copyright Ó Oracle Corporation, All rights reserved. Using Object Groups Blocks include: –Items –Item-level triggers –Block-level triggers –Relations Object groups cannot include other object groups Deleting: –An object group does not affect the objects –An object affects the object group Blocks include: –Items –Item-level triggers –Block-level triggers –Relations Object groups cannot include other object groups Deleting: –An object group does not affect the objects –An object affects the object group

22-10 Copyright Ó Oracle Corporation, All rights reserved. Copying Objects Ability to make exact copy of object Company Name: Company Code: Balance: Company Name: Company Code: Balance:

22-11 Copyright Ó Oracle Corporation, All rights reserved. What Is Subclassing? Ability to make exact copy of object Ability to add to object Company Name: Company Code: Balance: Company Name: Company Code: Balance: Address: Code: Company Name: Company Code: Balance:

22-12 Copyright Ó Oracle Corporation, All rights reserved. Subclassing Ability to make exact copy of object Ability to add to object Ability to alter properties Company Name: Company Code: Balance: Company Name: Company Code: Balance: Address: Code: Company Name: Company Code: Balance: Company Name: Company Code: Balance:

22-13 Copyright Ó Oracle Corporation, All rights reserved. Inheriting Changes Company Name: Company Code: Balance: Company Name: Company Code: Balance: Company Name: Company Code: Balance: Company Name: Company Code: Balance: Address: Code: Make changes to parent Ability to inherit changes

22-14 Copyright Ó Oracle Corporation, All rights reserved. An Object Library Is a convenient container of objects for reuse Simplifies reuse in complex environments Supports corporate, project, and personal standards Simplifies the sharing of reusable components Is a convenient container of objects for reuse Simplifies reuse in complex environments Supports corporate, project, and personal standards Simplifies the sharing of reusable components

22-15 Copyright Ó Oracle Corporation, All rights reserved. Object Libraries Appear in the Navigator if they are open Are used with a simple tabbed interface Are saved to. olb file or to database Appear in the Navigator if they are open Are used with a simple tabbed interface Are saved to. olb file or to database

22-16 Copyright Ó Oracle Corporation, All rights reserved. Benefits of the Object Library Simplifies the sharing and reuse of objects Provides control and enforcement of standards Eliminates the need to maintain multiple referenced forms Simplifies the sharing and reuse of objects Provides control and enforcement of standards Eliminates the need to maintain multiple referenced forms

22-17 Copyright Ó Oracle Corporation, All rights reserved. A SmartClass Is an object in an object library that is frequently used as a class Can be applied easily and rapidly to existing objects Can be defined in many object libraries You can have many SmartClasses of a given object type. Is an object in an object library that is frequently used as a class Can be applied easily and rapidly to existing objects Can be defined in many object libraries You can have many SmartClasses of a given object type. Check indicates a SmartClass.

22-18 Copyright Ó Oracle Corporation, All rights reserved. Working with SmartClasses 1.Select an object in the Layout Editor or Navigator. 2.From the pop-up menu, select SmartClasses. 3.Select a class from the list. 1.Select an object in the Layout Editor or Navigator. 2.From the pop-up menu, select SmartClasses. 3.Select a class from the list.

22-19 Copyright Ó Oracle Corporation, All rights reserved. Reusing PL/SQL Triggers: –Copy and paste text –Copy and paste within a module –Copy to or subclass from another module –Move to an object library PL/SQL program units: –Copy and paste text –Copy and paste within a module –Copy to or subclass in another module –Create a library module –Move to an object library Triggers: –Copy and paste text –Copy and paste within a module –Copy to or subclass from another module –Move to an object library PL/SQL program units: –Copy and paste text –Copy and paste within a module –Copy to or subclass in another module –Create a library module –Move to an object library

22-20 Copyright Ó Oracle Corporation, All rights reserved. PL/SQL Libraries Applications Form modules Menu modules Report modules Graphic modules.pll or Database Procedures Functions Packages Library

22-21 Copyright Ó Oracle Corporation, All rights reserved. Writing Code for Libraries A library is a separate module, holding procedures, functions, and packages. Direct references to bind variables are not allowed. Use subprogram parameters for passing bind variables. Use functions, where appropriate, to return values. A library is a separate module, holding procedures, functions, and packages. Direct references to bind variables are not allowed. Use subprogram parameters for passing bind variables. Use functions, where appropriate, to return values.

22-22 Copyright Ó Oracle Corporation, All rights reserved. Creating Library Program Units

22-23 Copyright Ó Oracle Corporation, All rights reserved. Attach Library Dialog Box

22-24 Copyright Ó Oracle Corporation, All rights reserved. Calls and Searches procedure ( );...function... package.call ( ); procedure ( );...function... package.call ( ); Program Units PROCA PROCB Attached Libraries Database Calls Searches

22-25 Copyright Ó Oracle Corporation, All rights reserved. Summary Reasons to share objects and code: –Increased productivity –Increased modularity –Decreased maintenance –Maintaining standards Reasons to share objects and code: –Increased productivity –Increased modularity –Decreased maintenance –Maintaining standards

22-26 Copyright Ó Oracle Corporation, All rights reserved. Summary Methods of sharing objects and code: –Using property classes –Using object groups –Copying –Subclassing –Creating a library module –Using object libraries Methods of sharing objects and code: –Using property classes –Using object groups –Copying –Subclassing –Creating a library module –Using object libraries

22-27 Copyright Ó Oracle Corporation, All rights reserved. Practice 22 Overview This practice covers the following topics: Creating an object group and using this object group in a new form module Using property classes Creating an object library and using this object library in a new form module Setting and using SmartClasses This practice covers the following topics: Creating an object group and using this object group in a new form module Using property classes Creating an object library and using this object library in a new form module Setting and using SmartClasses