Implementing object methods as procedures

From: David Gallardo <david_at_gallardo.org>
Date: 26 Apr 2002 22:15:46 -0700
Message-ID: <c3a44a98.0204262115.1bd4f744_at_posting.google.com>


Is there any reason one would want to implement an object method as a procedure rather than as function?

It's easy to use a function, because it returns a value, so you can use it in a select, in a where clause, etc.:

  SELECT T.MYOBJECT.MYMETHOD()
  FROM MYTABLE T
  WHERE T.MYOBJECT.MYMETHOD()>10; But if you use a procedure, how do you call it? The only thing I found in Oracle doc was that you need to qualify the name with the object variable using dot notation, but it provides neither a context nor an example.

  • David Gallardo
Received on Sat Apr 27 2002 - 07:15:46 CEST

Original text of this message