|
|
| |
 |
|
Putting Methods to
Work in Oracle8
Oracle Tips by Mike Ault |
User Defined Methods
User defined methods are, as the name implies,
program units that perform some specialized action other than a
comparative function. The content and action of user defined methods
is at the developers discretion. User defined methods can contain
embedded calls to other methods, external procedures, or even other
programs. While the declarative basis for all methods is PL/SQL, a
method may access any program callable by the C language. This
provides a tremendous amount of flexibility to extend the
programmatic control which developers may now exercise. When methods
are defined for a supertype, they are inherited by all subtypes
under the supertype. This points out two important aspects of object
type and method design: Created behaviors are shared under an object
type class, and each subtype receives the exact same behavior
(method). To illustrate some of the utility found in user defined
methods, the next section presents a brief but powerful example.
SEE CODE DEPOT FOR FULL SCRIPTS
 |
For more information on this topic, I recommend Don
Burleson's latest book "Oracle
Tuning: The Definitive Reference".
You can buy it direct from the publisher for 50%-off and get
instant access to the code depot of Oracle tuning scripts: |
http://www.rampant-books.com/book_1002_oracle_tuning_definitive_reference_2nd_ed.htm
 |
Expert Remote DBA
BC is America's oldest and largest Remote DBA Oracle support
provider. Get real Remote DBA experts, call
BC Remote DBA today. |
 |
|
|
|
|