public class UnresolvedTableException extends ParseException
DBChecker
when a table does not exist
or whose the schema reference is ambiguous.DBChecker
,
Serialized FormcurrentToken, eol, expectedTokenSequences, position, tokenImage
Constructor and Description |
---|
UnresolvedTableException(ADQLColumn column)
UNKNOWN TABLE REFERENCE
|
UnresolvedTableException(ADQLColumn column,
java.lang.String table1,
java.lang.String table2)
AMBIGUOUS TABLE REFERENCE
|
UnresolvedTableException(ADQLTable table)
UNKNOWN TABLE
|
UnresolvedTableException(ADQLTable table,
java.lang.String t1,
java.lang.String t2)
AMBIGUOUS TABLE NAME
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTableName() |
protected void |
initPosition(ADQLColumn column) |
protected void |
initPosition(ADQLTable table)
Initializes the position at which this exception occurs.
|
getPosition
public UnresolvedTableException(ADQLTable table)
UNKNOWN TABLE
Builds the exception with an ADQLTable
which does not exist.
table
- The unresolved ADQLTable
.public UnresolvedTableException(ADQLTable table, java.lang.String t1, java.lang.String t2)
AMBIGUOUS TABLE NAME
Builds the exception with an ADQLTable
which does not have a schema reference AND which may come from more than one schema.
The two given schema names are schemas which contain a table with the same name as the given one.
table
- The ambiguous ADQLTable
(no schema reference).t1
- First possibility.t2
- A second possibility.public UnresolvedTableException(ADQLColumn column)
UNKNOWN TABLE REFERENCE
Builds the exception with an ADQLColumn
whose the table reference is unknown.
column
- The ADQLColumn
whose the table reference is unresolved.public UnresolvedTableException(ADQLColumn column, java.lang.String table1, java.lang.String table2)
AMBIGUOUS TABLE REFERENCE
Builds the exception with an ADQLColumn
which has an ambiguous table reference.
The two given table correspond to tables which match with the table reference of the given ADQLColumn
.
column
- The ADQLColumn
whose the table reference is ambiguous.table1
- A table whose the name match with the table reference of the column.table2
- Another table whose the name match with the table reference of the column.protected final void initPosition(ADQLTable table)
table
- The unresolved table.protected final void initPosition(ADQLColumn column)
public final java.lang.String getTableName()