Create Oracle Packages

Return to Introduction  Previous page  Next page

To create an Oracle package, follow the steps below:

1.Open the project in the Project Browser window and create an Enterprise Architect package (and, if required, a Class diagram).
2.Add a Class element to either the package or the diagram.
3.Open the Properties dialog for the element and, in the Stereotype field, assign the value Package.
4.For the package specification, create an Operation with the name Specification and with no return type.
5.Open the Properties dialog for the Specification Operation and, on the Behavior tab, type the entire package specification into the Initial Code field.
6.For the package body, create an Operation with the name Body and with no return type.
7.Open the Properties dialog for the Body Operation and, on the Behavior tab, type the entire package body into the Initial Code field.