org.codehaus.groovy.grails.scaffolding
Class DomainClassPropertyComparator
java.lang.Object
org.codehaus.groovy.grails.scaffolding.DomainClassPropertyComparator
- All Implemented Interfaces:
- Comparator
public class DomainClassPropertyComparator
- extends Object
- implements Comparator
Comparator that uses the domain class property constraints to establish order in sort methods and always
places the id first
- Since:
- 10-Feb-2006
- Author:
- Graeme Rocher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomainClassPropertyComparator
public DomainClassPropertyComparator(GrailsDomainClass domainClass)
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator
Copyright (c) 2005-2009 The Grails project