User's Manual
Virtuoso 4.5 Application and Integration Reviewers Guide  
Copyright ©2006 OpenLink Software     
24 
} 
Figure 32 – Defining the Create Type in Virtuoso for Java 
create type "Point" language JAVA external name 'Point' 
 AS ( 
  "x" double precision external name 'x' external type 'D', 
  "y" double precision external name 'y' external type 'D' 
 ) 
 unrestricted 
 CONSTRUCTOR METHOD "Point" ( 
  "p1" double precision external type 'D', 
  "p2" double precision external type 'D'), 
 METHOD "distance" ("p1" "Point" external type 'LPoint;') 
  returns double precision external type 'D' 
  external name 'distance', 
; 
More Information 
For complete details on User Defined Types, see: 
•  Virtuoso Documentation on User Defined Types 
•  Virtuoso CLR Using C# objects to extent Virtuoso via UDTs Tutorial 
•  Virtuoso Java Using Java objects to extent Virtuoso via UDTs Tutorial 










