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 casecolumns
is 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 casecolumns
is 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 casecolumns
is empty
-
descending
Adds a 'descending' order by for the given columns- Parameters:
columns
- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException
- in casecolumns
is 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 casecolumns
is 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 casecolumns
is empty
-
build
OrderBy build()- Returns:
- a new
OrderBy
instance based on this builder
-