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 columnsascending
(OrderBy.NullOrder nullOrder, Column<?>... columns) Adds an 'ascending' order by for the given columnsascendingIgnoreCase
(Column<String>... columns) Adds an 'ascending' order by ignoring case for the given columnsascendingIgnoreCase
(OrderBy.NullOrder nullOrder, Column<String>... columns) Adds an 'ascending' order by ignoring case for the given columnsbuild()
descending
(Column<?>... columns) Adds a 'descending' order by for the given columnsdescending
(OrderBy.NullOrder nullOrder, Column<?>... columns) Adds a 'descending' order by for the given columnsdescendingIgnoreCase
(Column<?>... columns) Adds a 'descending' order by ignoring case for the given columnsdescendingIgnoreCase
(OrderBy.NullOrder nullOrder, Column<String>... columns) Adds a 'descending' order by ignoring case for the given columns
-
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
-
ascendingIgnoreCase
Adds an 'ascending' order by ignoring case for the given columns- Parameters:
columns
- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException
- in casecolumns
is empty
-
ascending
Adds an 'ascending' order by for the given columns- Parameters:
nullOrder
- the null ordercolumns
- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException
- in casecolumns
is empty
-
ascendingIgnoreCase
Adds an 'ascending' order by ignoring case for the given columns- Parameters:
nullOrder
- the null ordercolumns
- 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
-
descendingIgnoreCase
Adds a 'descending' order by ignoring case for the given columns- 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:
nullOrder
- the null ordercolumns
- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException
- in casecolumns
is empty
-
descendingIgnoreCase
Adds a 'descending' order by ignoring case for the given columns- Parameters:
nullOrder
- the null ordercolumns
- the columns- Returns:
- this builder instance
- Throws:
IllegalArgumentException
- in casecolumns
is empty
-
build
OrderBy build()- Returns:
- a new
OrderBy
instance based on this builder
-