O'Reilly logo

Oracle SQL and PL/SQL Handbook: A Guide for Data Administrators, Developers, and Business Analysts by John Adolph Palinski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Packages

Encapsulation is the principle whereby the functions, calculations, extraction routines, and programs are linked with the data. To illustrate, an employee is an entity. Encapsulation would consist of the employee attributes (e.g., name, age, weight, address) and programs or methods (e.g., age calculation, wage calculations, retirement calculation) to be in one class. Oracle9i allows the developer to link these functions, calculations, extraction routines, and programs into a grouping called a package.

Packages offer the developer several important benefits:

  • Object-oriented capabilities. The developer can group all PL/SQL components into a logical group. The developer can maintain better control of objects by using these groupings.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required