public interface FromContent extends ADQLObject
ADQLTable
) or a join (ADQLJoin
).Modifier and Type | Method and Description |
---|---|
SearchColumnList |
getDBColumns()
Gets the list of all columns (~ database metadata) available in this FROM part.
|
java.util.List<ADQLTable> |
getTables()
|
java.util.List<ADQLTable> |
getTablesByAlias(java.lang.String alias,
boolean caseSensitive)
Gets all the table whose the alias is equals to the given one.
|
void |
setPosition(TextPosition position)
Set the position of this
FromContent in the given ADQL query string. |
adqlIterator, getCopy, getName, getPosition, toADQL
SearchColumnList getDBColumns() throws UnresolvedJoinException
Gets the list of all columns (~ database metadata) available in this FROM part.
Note: In the most cases, this list is generated on the fly !
DBColumn
s.UnresolvedJoinException
- If a join is not possible.java.util.List<ADQLTable> getTablesByAlias(java.lang.String alias, boolean caseSensitive)
Gets all the table whose the alias is equals to the given one.
Note: Theoretically, only one table may be returned. But, since this object may be generated without the parser,
it is possible that several ADQLTable
objects exits with the same alias (particularly if there are JOIN).
alias
- Alias of the table(s) to get.caseSensitive
- true if the research must be made with case-sensitivity, false otherwise.void setPosition(TextPosition position)
FromContent
in the given ADQL query string.position
- New position of this FromContent
.