Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Anyone implemented a constructor method in C?

Anyone implemented a constructor method in C?

From: Michael Schaefers <schaefe3_at_cs.uni-bonn.spam-remove.de>
Date: Tue, 16 Nov 2004 17:34:22 +0100
Message-ID: <cnda6g$1230$1@f1node01.rhrz.uni-bonn.de>


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);

END; Thanks a lot,
Michael          Received on Tue Nov 16 2004 - 10:34:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US