public class DBOrderByExpr extends DBExpr
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
desc |
protected DBColumnExpr |
expr |
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE| Constructor and Description |
|---|
DBOrderByExpr(DBColumnExpr expr,
boolean desc)
Construct a new DBOrderByInfo object set the specified
parameters to this object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
void |
addSQL(DBSQLBuilder sql,
long context)
Adds a column expression to the orderBy clause followed by the desc keyword if the order should be descending
|
DBColumnExpr |
getColumn() |
DBDatabase |
getDatabase()
Returns the database object to which this object belongs to.
|
boolean |
isDescending() |
void |
setDescending(boolean descending) |
checkParamNullprotected final DBColumnExpr expr
protected boolean desc
public DBOrderByExpr(DBColumnExpr expr, boolean desc)
expr - the columndesc - set true for descending or false for ascendingpublic DBColumnExpr getColumn()
public boolean isDescending()
public void setDescending(boolean descending)
public final DBDatabase getDatabase()
DBObjectgetDatabase in class DBObjectpublic void addReferencedColumns(Set<DBColumn> list)
DBExpraddReferencedColumns in class DBExprlist - list to which all used column expressions must be addedpublic void addSQL(DBSQLBuilder sql, long context)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.