23 Copyright © 2004, Oracle. All rights reserved. Sharing Objects and Code.

Slides:



Advertisements
Similar presentations
Copyright Ó Oracle Corporation, All rights reserved Sharing Objects and Code.
Advertisements

Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
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.
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.
5 Copyright © 2009, Oracle. All rights reserved. Defining ETL Mappings for Staging Data.
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
1 Pertemuan 03 Using Layers and Symbols Matakuliah: U0344 / DESKTOP 1 Tahun: 2006.
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.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice SISP Training Documentation Template.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
Copyright Ó Oracle Corporation, All rights reserved. 22 Running a Form Builder Application.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Key Applications Module Lesson 21 — Access Essentials
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.
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.
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.
14 Copyright © 2004, Oracle. All rights reserved. Enhancing the User Interface.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
22 Copyright © 2009, Oracle. All rights reserved. Filtering Requests in Oracle Business Intelligence Answers.
24 Copyright © 2009, Oracle. All rights reserved. Building Views and Charts in Requests.
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 LOVs and Editors
Introduction to Triggers
UNIT - V STORED PROCEDURE.
Chapter 6: Creating Custom Forms
Making Procedural Methods
Producing Triggers Schedule: Timing Topic 40 minutes Lecture
Creating Additional Input Items
Presentation transcript:

23 Copyright © 2004, Oracle. All rights reserved. Sharing Objects and Code

23-2 Copyright © 2004, Oracle. 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 Explain the inheritance symbols in the Property Palette Reuse objects from an object library Reuse PL/SQL code

23-3 Copyright © 2004, Oracle. All rights reserved. Benefits of Reusing Objects and Code Increases productivity Decreases maintenance Increases modularity Maintains standards Improves application performance

23-4 Copyright © 2004, Oracle. All rights reserved.

23-5 Copyright © 2004, Oracle. All rights reserved. What Are Property Classes? LOV properties Block properties Canvas properties Relation properties Item properties

23-6 Copyright © 2004, Oracle. All rights reserved. Creating a Property Class Add PropertyInherit Property Property ClassDelete Property

23-7 Copyright © 2004, Oracle. All rights reserved.

23-8 Copyright © 2004, Oracle. All rights reserved. Property palette Default property Inheriting from a Property Class Default property Property palette Default property Changed property Change Default property Property class Apply Property palette Inherited property Property palette Inherited property Variant property Change Inherited property Inherit Inherited property

23-9 Copyright © 2004, Oracle. All rights reserved. Inheriting from a Property Class Set the Subclass Information property. Convert an inherited property to a variant property. Convert a variant property to an inherited property. Convert a changed property to a default property. Inherited Property Variant Property Default Property Changed Property

23-10 Copyright © 2004, Oracle. All rights reserved. What Are Object Groups? Object groups: Are logical containers Enable you to: –Group related objects –Copy multiple objects in one operation

23-11 Copyright © 2004, Oracle. All rights reserved. Creating and 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 Deleting an object affects the object group

23-12 Copyright © 2004, Oracle. All rights reserved.

23-13 Copyright © 2004, Oracle. All rights reserved. Copying and Subclassing Objects and Code

23-14 Copyright © 2004, Oracle. All rights reserved. Subclassing Company Name: Company Code: Balance: Company Name: Company Code: Balance: Address: Code: Ability to inherit changes Ability to add to child object Ability to alter properties of child object Company Name: Company Code: Balance: Company Name: Company Code: Balance:

23-15 Copyright © 2004, Oracle. All rights reserved.

23-16 Copyright © 2004, Oracle. All rights reserved. What Are Object Libraries? 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 separate from the form module

23-17 Copyright © 2004, Oracle. All rights reserved.

23-18 Copyright © 2004, Oracle. All rights reserved. Benefits of the Object Library Simplifies the sharing and reuse of objects Provides control and enforcement of standards Promotes increased network performance Eliminates the need to maintain multiple referenced forms

23-19 Copyright © 2004, Oracle. All rights reserved. Working with Object Libraries Object Libraries: Appear in the Navigator if they are open Are used with a simple tabbed interface Are populated by dragging Form objects to tab page Are saved to.olb file

23-20 Copyright © 2004, Oracle. All rights reserved. What Is a SmartClass? 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 –Is the preferred method to promote similarity among objects for performance You can have many SmartClasses of a given object type. Check indicates a SmartClass

23-21 Copyright © 2004, Oracle. All rights reserved. Working with SmartClasses 1.Right-click an object in the Layout Editor or Navigator. 2.From the pop-up menu, select SmartClasses. 3.Select a class from the list.

23-22 Copyright © 2004, Oracle. 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

23-23 Copyright © 2004, Oracle. All rights reserved.

23-24 Copyright © 2004, Oracle. All rights reserved. What Are PL/SQL Libraries? Applications Form modules Menu modules Report modules.pll file Procedures Functions Packages Library

23-25 Copyright © 2004, Oracle. 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.

23-26 Copyright © 2004, Oracle. All rights reserved. Creating Library Program Units TEST

23-27 Copyright © 2004, Oracle. All rights reserved. Attach Library Dialog Box

23-28 Copyright © 2004, Oracle. All rights reserved. Calls and Searches procedure ( );...function... package.call ( ); Program Units PROCA PROCB Attached Libraries Database Calls Searches

23-29 Copyright © 2004, Oracle. All rights reserved.

23-30 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson, you should have learned that: You can reuse objects or code in the following ways: –Property Classes –Object Groups –Copying and subclassing –Object Libraries and SmartClasses To inherit properties from a property class, set an item’s Subclass Information property. You can create an object group in one module to make it easy to reuse related objects in other modules.

23-31 Copyright © 2004, Oracle. All rights reserved. Summary Inheritance symbols in the Property Palette show whether the value is changed, inherited, overridden, or the default. You can drag objects from an object library or mark them as SmartClasses for even easier reuse. You can reuse PL/SQL code by: –Copying and pasting in the PL/SQL Editor –Copying or subclassing –Defining program units to call the same code at multiple places within a module –Creating PL/SQL library to call the same code from multiple forms

23-32 Copyright © 2004, Oracle. All rights reserved. Practice 23 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 Modifying an object in the object library and observing the effect on subclassed objects Setting and using SmartClasses Creating a PL/SQL program unit to be called from multiple triggers

23-33 Copyright © 2004, Oracle. All rights reserved.

23-34 Copyright © 2004, Oracle. All rights reserved.