Package adql.query
Class SelectAllColumns
- java.lang.Object
-
- adql.query.SelectItem
-
- adql.query.SelectAllColumns
-
- All Implemented Interfaces:
ADQLObject
public final class SelectAllColumns extends SelectItem
In ADQL it corresponds to the '*' and '{tableName}.*' items in the SELECT clause. It means: 'select all columns'.- Version:
- 1.4 (06/2015)
- Author:
- Grégory Mantelet (CDS;ARI)
-
-
Constructor Summary
Constructors Constructor Description SelectAllColumns(ADQLQuery query)Builds aSelectItemwhich selects all columns available in the given ADQL query.SelectAllColumns(ADQLTable table)Builds aSelectItemwhich selects all columns available in the given table.SelectAllColumns(SelectAllColumns toCopy)Builds aSelectAllColumnsby copying the given one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ADQLIteratoradqlIterator()Gets an iterator on the intern ADQL objects.ADQLTablegetAdqlTable()Gets the table whose all columns must be selected.ADQLObjectgetCopy()Gets a (deep) copy of this ADQL object.java.lang.StringgetName()Gets the name of this object in ADQL.ADQLQuerygetQuery()Gets the query whose all available columns must be selected.voidsetAdqlTable(ADQLTable table)Sets the table whose all columns must be selected.voidsetQuery(ADQLQuery query)Sets the query whose all available columns must be selected.java.lang.StringtoADQL()Gets the ADQL expression of this object.-
Methods inherited from class adql.query.SelectItem
getAlias, getOperand, getPosition, hasAlias, isCaseSensitive, setAlias, setCaseSensitive, setPosition
-
-
-
-
Constructor Detail
-
SelectAllColumns
public SelectAllColumns(ADQLQuery query)
Builds aSelectItemwhich selects all columns available in the given ADQL query.- Parameters:
query- The query whose all available columns must be selected.
-
SelectAllColumns
public SelectAllColumns(ADQLTable table)
Builds aSelectItemwhich selects all columns available in the given table.- Parameters:
table- The table whose all available columns must be selected.
-
SelectAllColumns
public SelectAllColumns(SelectAllColumns toCopy) throws java.lang.Exception
Builds aSelectAllColumnsby copying the given one.- Parameters:
toCopy- TheSelectAllColumnsto copy.- Throws:
java.lang.Exception- If there is an error during the copy.
-
-
Method Detail
-
getQuery
public final ADQLQuery getQuery()
Gets the query whose all available columns must be selected.
-
setQuery
public final void setQuery(ADQLQuery query)
Sets the query whose all available columns must be selected.- Parameters:
query- AnADQLQuery(MUST NOT BE NULL).
-
getAdqlTable
public final ADQLTable getAdqlTable()
Gets the table whose all columns must be selected.
-
setAdqlTable
public final void setAdqlTable(ADQLTable table)
Sets the table whose all columns must be selected.- Parameters:
table- AnADQLTable(MUST NOT BE NULL).
-
getCopy
public final ADQLObject getCopy() throws java.lang.Exception
Description copied from interface:ADQLObjectGets a (deep) copy of this ADQL object.- Specified by:
getCopyin interfaceADQLObject- Overrides:
getCopyin classSelectItem- Returns:
- The copy of this ADQL object.
- Throws:
java.lang.Exception- If there is any error during the copy.
-
getName
public final java.lang.String getName()
Description copied from interface:ADQLObjectGets the name of this object in ADQL.- Specified by:
getNamein interfaceADQLObject- Overrides:
getNamein classSelectItem- Returns:
- The name of this ADQL object.
-
adqlIterator
public final ADQLIterator adqlIterator()
Description copied from interface:ADQLObjectGets an iterator on the intern ADQL objects.
Note:The returned iterator is particularly used by a
ISearchHandlerextension to browse a whole ADQL tree.- Specified by:
adqlIteratorin interfaceADQLObject- Overrides:
adqlIteratorin classSelectItem- Returns:
- An ADQL objects iterator.
- See Also:
ADQLIterator,ISearchHandler
-
toADQL
public final java.lang.String toADQL()
Description copied from interface:ADQLObjectGets the ADQL expression of this object.- Specified by:
toADQLin interfaceADQLObject- Overrides:
toADQLin classSelectItem- Returns:
- The corresponding ADQL expression.
-
-