9. The method of claim 6 , further comprising: serializing instances of the user defined type such that the binary representations of the instances are binary ordered; receiving an expression in a query language of the database system, the evaluation of which requires invocation of a method on an instance of the user defined type; generating a computed column over the expression; and creating an index over the computed column.
6. The method of claim 1 , wherein the class defining the structure and method of the user-defined type further comprises an attribute that specifies that serialized binary representations of instances of the user-defined type will be binary ordered.