public class ADQLOrder extends ColumnReference
| Constructor and Description |
|---|
ADQLOrder(ADQLOrder toCopy)
Builds an ORDER BY item by copying the given one.
|
ADQLOrder(int colIndex)
Builds an order indication with the index of the selected column on which an ASCending ordering will be done.
|
ADQLOrder(int colIndex,
boolean desc)
Builds an order indication with the index of the selected column on which the specified ordering will be done.
|
ADQLOrder(java.lang.String colName)
Builds an order indication with the name or the alias of the selected column on which an ASCending ordering will be done.
|
ADQLOrder(java.lang.String colName,
boolean desc)
Builds an order indication with the name of the alias of the selected column on which the specified ordering will be done.
|
| Modifier and Type | Method and Description |
|---|---|
ADQLObject |
getCopy()
Gets a (deep) copy of this ADQL object.
|
java.lang.String |
getName()
Gets the name of this object in ADQL.
|
boolean |
isDescSorting()
Tells how the results will be sorted.
|
void |
setOrder(int colIndex,
boolean desc)
Updates the current order indication.
|
void |
setOrder(java.lang.String colName,
boolean desc)
Updates the current order indication.
|
java.lang.String |
toADQL()
Gets the ADQL expression of this object.
|
adqlIterator, getAdqlTable, getColumnIndex, getColumnName, getDBLink, getPosition, isCaseSensitive, isIndex, setAdqlTable, setCaseSensitive, setColumnIndex, setColumnName, setDBLink, setPositionpublic ADQLOrder(int colIndex)
throws java.lang.ArrayIndexOutOfBoundsException
colIndex - The index of a selected column (from 1).java.lang.ArrayIndexOutOfBoundsException - If the index is less or equal 0.ADQLOrder(int, boolean)public ADQLOrder(int colIndex,
boolean desc)
throws java.lang.ArrayIndexOutOfBoundsException
colIndex - The index of a selected column (from 1).desc - true means DESCending order, false means ASCending order.java.lang.ArrayIndexOutOfBoundsException - If the index is less or equal 0.public ADQLOrder(java.lang.String colName)
throws java.lang.NullPointerException
colName - The name or the alias of a selected column.java.lang.NullPointerException - If the given name is null or is an empty string.ADQLOrder(String, boolean)public ADQLOrder(java.lang.String colName,
boolean desc)
throws java.lang.NullPointerException
colName - The name of the alias of a selected column.desc - true means DESCending order, false means ASCending order.java.lang.NullPointerException - If the given name is null or is an empty string.public ADQLOrder(ADQLOrder toCopy)
toCopy - The ORDER BY item to copy.public boolean isDescSorting()
public void setOrder(int colIndex,
boolean desc)
throws java.lang.ArrayIndexOutOfBoundsException
colIndex - The index of a selected column (from 1).desc - true means DESCending order, false means ASCending order.java.lang.IndexOutOfBoundsException - If the given index is less or equal 0.java.lang.ArrayIndexOutOfBoundsExceptionpublic void setOrder(java.lang.String colName,
boolean desc)
throws java.lang.NullPointerException
colName - The name or the alias of a selected column.desc - true means DESCending order, false means ASCending order.java.lang.NullPointerException - If the given name is null or is an empty string.public ADQLObject getCopy() throws java.lang.Exception
ADQLObjectgetCopy in interface ADQLObjectgetCopy in class ColumnReferencejava.lang.Exception - If there is any error during the copy.public java.lang.String getName()
ADQLObjectgetName in interface ADQLObjectgetName in class ColumnReferencepublic java.lang.String toADQL()
ADQLObjecttoADQL in interface ADQLObjecttoADQL in class ColumnReference