public static class OrderByClause.Builder extends Object
Constructor and Description |
---|
OrderByClause.Builder() |
Modifier and Type | Method and Description |
---|---|
OrderByClause.Builder |
asc(String columnName)
Adds a column name to order by (ascending).
|
OrderByClause |
build()
Builds and returns the OrderByClause instance.
|
OrderByClause.Builder |
col(String columnName,
boolean isAscending)
Adds a column name to order by with the specified direction.
|
OrderByClause.Builder |
desc(String columnName)
Adds a column name to order by (descending).
|
public OrderByClause.Builder asc(String columnName)
columnName
- the column namepublic OrderByClause.Builder desc(String columnName)
columnName
- the column namepublic OrderByClause.Builder col(String columnName, boolean isAscending)
columnName
- the column nameisAscending
- true for ascending; false for descendingpublic OrderByClause build()
Copyright © 2015. All Rights Reserved.