Class LocationQuery.LocationOrder
- Enclosing class:
- LocationQuery
Orders the results of the query.
- API:
- This is a public API.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Defines the direction of the order. -
Method Summary
Modifier and TypeMethodDescriptionaddress()
Orders the results by theaddress
findAll()
Finds all locations that match the filter criteria.Finds a location that matches the filter criteria and is at top position in the order specified withLocationQuery.orderBy()
.name()
Orders the results by thename
.note()
Orders the results by thenote
.Orders the results by thetimestamp
.type()
Orders the results by thetype
.
-
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
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
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.
-