So I've created an object type with several attributes.
And from that object I've also created a collection type. Let's say:
create or replace type employees as table of employee;
Now I want to use the collection object to perform methods such as GetAllEmployees(), GetEmployeesByJobType() and so on. So that I would be somewhere else call upon the object type and perform the method:
v_list := employees.GetAllEmployees();
Same as you would be making call from a package but instead of a package I want to call an object.
However I tried specifying and creating the methods just as I did in the object but it would not compile.
Now I know I can execute the logic for the methods in a package but I want to keep it seperate.
So my question is: Is it possible to perform the logic inside the object collection?