gov.nih.nci.caarray.domain.search
Class AdHocSortCriterion<T>

java.lang.Object
  extended by gov.nih.nci.caarray.domain.search.AdHocSortCriterion<T>
Type Parameters:
T - the type of the entity to which the sort is to be applied
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.search.SortCriterion<T>, JoinableSortCriterion<T>

public class AdHocSortCriterion<T>
extends java.lang.Object
implements JoinableSortCriterion<T>

Class for creating an ad-hoc sort criterion, ie when there is no enumeration of sort fields for an entity.

Author:
dkokotov

Constructor Summary
AdHocSortCriterion(java.lang.String orderField)
          Create a new criterion using given sort field.
 
Method Summary
 java.lang.String[] getJoins()
          Get list of join tables for this search order.
 java.lang.String getLeftJoinField()
          
 java.lang.String getOrderField()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdHocSortCriterion

public AdHocSortCriterion(java.lang.String orderField)
Create a new criterion using given sort field.

Parameters:
orderField - the field to sort on
Method Detail

getOrderField

public java.lang.String getOrderField()

Specified by:
getOrderField in interface com.fiveamsolutions.nci.commons.data.search.SortCriterion<T>

getJoins

public java.lang.String[] getJoins()
Get list of join tables for this search order.

Specified by:
getJoins in interface JoinableSortCriterion<T>
Returns:
join tables

getLeftJoinField

public java.lang.String getLeftJoinField()

Specified by:
getLeftJoinField in interface com.fiveamsolutions.nci.commons.data.search.SortCriterion<T>