Class LocationQuery.LocationOrder.OrderDirection

  • Enclosing class:
    LocationQuery.LocationOrder

    public class LocationQuery.LocationOrder.OrderDirection
    extends Object

    Defines the direction of the order. Either ascending or descending.

    API:
    This is a public API.
    • Method Detail

      • ascending

        public LocationQuery.LocationOrder ascending()

        Order direction ascending.

        Example:

         
         import ch.ivyteam.ivy.location.ILocation;
         List<ILocation> locations = ivy.session.getSessionUser().locations().search().orderBy().name().ascending().findAll();
         
        Returns:
        location order
        API:
        This public API is available in IvyScript and Java. It has the visibility EXPERT.
      • descending

        public LocationQuery.LocationOrder descending()

        Order direction descending.

        Example:

         
         import ch.ivyteam.ivy.location.ILocation;
         List<ILocation> locations = ivy.session.getSessionUser().locations().search().orderBy().name().descending().findAll();
         
        Returns:
        location order
        API:
        This public API is available in IvyScript and Java. It has the visibility EXPERT.