java.lang.Object
org.postgresql.pljava.example.annotation.Point
All Implemented Interfaces:
SQLData

@SQLAction(requires={"point mirror type","point assertHasValues"}, install="SELECT javatest.assertHasValues(CAST(\'(1,2)\' AS point), 1, 2)") @MappedUDT(name="point", provides="point mirror type") public class Point extends Object implements SQLData
Example of a "mirrored UDT": a user-defined type that exposes to Java the internal representation of an existing (but not SQL-standard) PostgreSQL type. Naturally, the author of this type has to know (from the PostgreSQL source) that a Point is stored as two float8s, x first and then y.