Class TaskQuery.OrderByColumnQuery

    • Method Detail

      • ascending

        public TaskQuery.OrderByQuery ascending()

        Sorts the column in ascending direction.

        Example:

        TaskQuery.create().orderBy().name().ascending()

        SQL part: ORDER BY [column] ASC

        Returns:
        query for further composition
        API:
        This public API is available in IvyScript and Java. It has the visibility EXPERT.
      • ascendingNullFirst

        public TaskQuery.OrderByQuery ascendingNullFirst()

        Sorts the column in ascending direction, with NULL values at the beginning of the list.

        Example:

        TaskQuery.create().orderBy().name().ascendingNullFirst()

        SQL part: ORDER BY (CASE WHEN [column] IS NULL THEN 0 ELSE 1 END), [column] ASC

        Returns:
        query for further composition
        API:
        This public API is available in IvyScript and Java. It has the visibility EXPERT.
      • ascendingNullLast

        public TaskQuery.OrderByQuery ascendingNullLast()

        Sorts the column in ascending direction, with NULL values at the end of the list.

        Example:

        TaskQuery.create().orderBy().name().ascendingNullLast()

        SQL part: ORDER BY (CASE WHEN [column] IS NULL THEN 1 ELSE 0 END), [column] ASC

        Returns:
        query for further composition
        API:
        This public API is available in IvyScript and Java. It has the visibility EXPERT.
      • descending

        public TaskQuery.OrderByQuery descending()

        Sorts the column in descending direction.

        Example:

        TaskQuery.create().orderBy().name().descending()

        SQL part: ORDER BY [column] DESC

        Returns:
        query for further composition
        API:
        This public API is available in IvyScript and Java. It has the visibility EXPERT.
      • descendingNullFirst

        public TaskQuery.OrderByQuery descendingNullFirst()

        Sorts the column in descending direction, with NULL values at the beginning of the list.

        Example:

        TaskQuery.create().orderBy().name().descendingNullFirst()

        SQL part: ORDER BY (CASE WHEN [column] IS NULL THEN 0 ELSE 1 END), [column] DESC

        Returns:
        query for further composition
        API:
        This public API is available in IvyScript and Java. It has the visibility EXPERT.
      • descendingNullLast

        public TaskQuery.OrderByQuery descendingNullLast()

        Sorts the column in descending direction, with NULL values at the end of the list.

        Example:

        TaskQuery.create().orderBy().name().descendingNullLast()

        SQL part: ORDER BY (CASE WHEN [column] IS NULL THEN 1 ELSE 0 END), [column] DESC

        Returns:
        query for further composition
        API:
        This public API is available in IvyScript and Java. It has the visibility EXPERT.