org.LexGrid.LexBIG.Extensions.Query
Interface Sort

All Superinterfaces:
Extendable, java.io.Serializable

public interface Sort
extends Extendable

Allows for unique sorting of query results.


Method Summary
<T> java.util.Comparator<T>
getComparatorForSearchClass(java.lang.Class<T> searchClass)
          Gets the comparator for search class.
 boolean isSortValidForClass(java.lang.Class<?> clazz)
          Checks if this sort is valid for the class.
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Extendable
getDescription, getName, getProvider, getVersion
 

Method Detail

getComparatorForSearchClass

<T> java.util.Comparator<T> getComparatorForSearchClass(java.lang.Class<T> searchClass)
                                                    throws LBParameterException
Gets the comparator for search class.

Parameters:
searchClass - the search class
Returns:
the comparator for search class
Throws:
LBParameterException - the LB parameter exception

isSortValidForClass

boolean isSortValidForClass(java.lang.Class<?> clazz)
Checks if this sort is valid for the class.

Parameters:
clazz - the clazz
Returns:
true, if this sort is valid for the class

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.