FileDocCategorySizeDatePackage
MappingCompare.javaAPI DocGlassfish v2 API2566Tue May 22 16:54:34 BST 2007oracle.toplink.essentials.internal.helper

MappingCompare

public class MappingCompare extends Object implements TOPComparison
INTERNAL: Use to Sort The mappings in Descriptor, Mappings are either DirectToField, which must be at the top or other Avoid using this class as sun.misc is not part of many VM's like Netscapes.

Fields Summary
Constructors Summary
Methods Summary
public intcompare(java.lang.Object arg1, java.lang.Object arg2)

        int arg1Value = ((DatabaseMapping)arg1).getWeight().intValue();
        int arg2Value = ((DatabaseMapping)arg2).getWeight().intValue();
        return (arg1Value - arg2Value);