Module is.codion.framework.domain
Interface OrderBy.Builder
- Enclosing interface:
- OrderBy
public static interface OrderBy.Builder
Builds a
OrderBy instance.-
Method Summary
Modifier and TypeMethodDescriptionAdds an 'ascending' order by for the given columnsascendingNullsFirst(Column<?>... columns) Adds an 'ascending' order by for the given columns with nulls appearing firstascendingNullsLast(Column<?>... columns) Adds an 'ascending' order by for the given columns with nulls appearing lastbuild()descending(Column<?>... columns) Adds a 'descending' order by for the given columnsdescendingNullsFirst(Column<?>... columns) Adds a 'descending' order by for the given columns with nulls appearing firstdescendingNullsLast(Column<?>... columns) Adds a 'descending' order by for the given columns with nulls appearing last
-
Method Details
-
ascending
Adds an 'ascending' order by for the given columns- Parameters:
columns- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in casecolumnsis empty
-
ascendingNullsFirst
Adds an 'ascending' order by for the given columns with nulls appearing first- Parameters:
columns- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in casecolumnsis empty
-
ascendingNullsLast
Adds an 'ascending' order by for the given columns with nulls appearing last- Parameters:
columns- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in casecolumnsis empty
-
descending
Adds a 'descending' order by for the given columns- Parameters:
columns- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in casecolumnsis empty
-
descendingNullsFirst
Adds a 'descending' order by for the given columns with nulls appearing first- Parameters:
columns- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in casecolumnsis empty
-
descendingNullsLast
Adds a 'descending' order by for the given columns with nulls appearing last- Parameters:
columns- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in casecolumnsis empty
-
build
OrderBy build()- Returns:
- a new
OrderByinstance based on this builder
-