Package ca.uhn.fhir.rest.api
Class SortSpec
java.lang.Object
ca.uhn.fhir.rest.api.SortSpec
- All Implemented Interfaces:
Serializable
Represents values for sorting resources
returned by a server.
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionSortSpec()ConstructorConstructorSortSpec(String theParamName, SortOrderEnum theOrder)ConstructorSortSpec(String theParamName, SortOrderEnum theOrder, SortSpec theChain)Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetChain()Gets the chained sort specification, ornullif none.getOrder()Returns the sort order specified by this parameter, ornullif none is explicitly provided (which meansSortOrderEnum.ASCaccording to the FHIR specification)Returns the actual name of the search param to sort bySets the chained sort specification, ornullif none.setOrder(SortOrderEnum theOrder)Sets the sort order specified by this parameter, ornullif none should be explicitly defined (which meansSortOrderEnum.ASCaccording to the FHIR specification)setParamName(String theFieldName)Sets the actual name of the search param to sort by
-
Constructor Details
-
SortSpec
public SortSpec()Constructor -
SortSpec
Constructor- Parameters:
theParamName- The search name to sort on. SeesetParamName(String)for more information.
-
SortSpec
Constructor- Parameters:
theParamName- The search name to sort on. SeesetParamName(String)for more information.theOrder- The order, ornull. SeesetOrder(SortOrderEnum)for more information.
-
SortSpec
Constructor- Parameters:
theParamName- The search name to sort on. SeesetParamName(String)for more information.theOrder- The order, ornull. SeesetOrder(SortOrderEnum)for more information.theChain- The next sorting spec, to be applied only when this spec makes two entries equal. SeesetChain(SortSpec)for more information.
-
-
Method Details
-
getChain
Gets the chained sort specification, ornullif none. If multiple sort parameters are chained (indicating a sub-sort), the second level sort is chained via this property. -
getParamName
Returns the actual name of the search param to sort by -
getOrder
Returns the sort order specified by this parameter, ornullif none is explicitly provided (which meansSortOrderEnum.ASCaccording to the FHIR specification) -
setChain
Sets the chained sort specification, ornullif none. If multiple sort parameters are chained (indicating a sub-sort), the second level sort is chained via this property. -
setParamName
Sets the actual name of the search param to sort by -
setOrder
Sets the sort order specified by this parameter, ornullif none should be explicitly defined (which meansSortOrderEnum.ASCaccording to the FHIR specification)
-