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.
Get Oracle SQL and PL/SQL Handbook: A Guide for Data Administrators, Developers, and Business Analysts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.