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:
-
Constructor Summary
ConstructorDescriptionSortSpec()
ConstructorConstructorSortSpec
(String theParamName, SortOrderEnum theOrder) ConstructorSortSpec
(String theParamName, SortOrderEnum theOrder, SortSpec theChain) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetChain()
Gets the chained sort specification, ornull
if none.getOrder()
Returns the sort order specified by this parameter, ornull
if none is explicitly provided (which meansSortOrderEnum.ASC
according to the FHIR specification)Returns the actual name of the search param to sort bySets the chained sort specification, ornull
if none.setOrder
(SortOrderEnum theOrder) Sets the sort order specified by this parameter, ornull
if none should be explicitly defined (which meansSortOrderEnum.ASC
according 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, ornull
if 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, ornull
if none is explicitly provided (which meansSortOrderEnum.ASC
according to the FHIR specification) -
setChain
Sets the chained sort specification, ornull
if 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, ornull
if none should be explicitly defined (which meansSortOrderEnum.ASC
according to the FHIR specification)
-