Class LocationQuery.LocationOrder

java.lang.Object
ch.ivyteam.ivy.location.LocationQuery.LocationOrder
Enclosing class:
LocationQuery

public class LocationQuery.LocationOrder extends Object

Orders the results of the query.

API:
This is a public API.
  • Method Details

    • timestamp

      Orders the results by the timestamp.

      Example:

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

      Orders the results by the name.

      Example:

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

      Orders the results by the type.

      Example:

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

      Orders the results by the address

      Example:

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

      Orders the results by the note.

      Example:

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

      public ILocation findFirst()

      Finds a location that matches the filter criteria and is at top position in the order specified with LocationQuery.orderBy().

      Example:

       import ch.ivyteam.ivy.location.ILocation;
       ILocation location = ivy.session.getSessionUser().locations().search().orderBy().name().ascending().findFirst();
       
      Returns:
      first location that matches the filter criteria in the specified order. Null if no location matches the filter.
      See Also:
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • findAll

      public List<ILocation> findAll()

      Finds all locations that match the filter criteria. The list is ordered as specified with LocationQuery.orderBy().

      Example:

       import ch.ivyteam.ivy.location.ILocation;
       List<ILocation> allLocations = ivy.session.getSessionUser().locations().search().orderBy().timestamp().descending().findAll();
       
      Returns:
      all locations that match the filter criteria in the specified order
      See Also:
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.