Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Anyone implemented a constructor method in C?
Hi,
has anybody out there ever implemented a constructor method for an object type in C under Oracle 10g?
Is it possible at all?
I am thinking of s.th. like this:
CREATE OR REPLACE TYPE point AS OBJECT (
blah NUMBER(2,0), foo VARCHAR2(100), CONSTRUCTOR FUNCTION point RETURN SELF AS RESULT) NOT FINAL; ... with the type body specified as follows: CREATE OR REPLACE TYPE BODY point AS
CONSTRUCTOR FUNCTION point RETRUN SELF AS RESULT AS EXTERNAL LANGUAGE C LIBRARY foo_lib NAME "point_constructor" WITH CONTEXT PARAMETERS ( CONTEXT, SELF);
![]() |
![]() |