public class IsNull extends java.lang.Object implements ADQLConstraint
| Constructor and Description |
|---|
IsNull(ADQLColumn column)
Builds a comparison between the given column and NULL.
|
IsNull(ADQLColumn column,
boolean isNot)
Builds a comparison between the column and NULL.
|
IsNull(IsNull toCopy)
Builds a IsNull constraint by copying the given one.
|
| Modifier and Type | Method and Description |
|---|---|
ADQLIterator |
adqlIterator()
Gets an iterator on the intern ADQL objects.
|
ADQLColumn |
getColumn()
Gets the column whose the value is compared to NULL.
|
ADQLObject |
getCopy()
Gets a (deep) copy of this ADQL object.
|
java.lang.String |
getName()
Gets the name of this object in ADQL.
|
boolean |
isNotNull()
Tells whether the predicate is IS NULL or IS NOT NULL.
|
void |
setColumn(ADQLColumn column)
Lets changing the column whose the value must be compared to NULL.
|
void |
setNotNull(boolean notNull)
Lets indicating which predicate must be used (IS NULL or IS NOT NULL).
|
java.lang.String |
toADQL()
Gets the ADQL expression of this object.
|
public IsNull(ADQLColumn column) throws java.lang.NullPointerException
column - The column whose the value must be compared to NULL.java.lang.NullPointerException - If the given column is null.public IsNull(ADQLColumn column, boolean isNot) throws java.lang.NullPointerException
column - The column whose the value must be compared to NULL.isNot - true means IS NOT NULL, false means IS NULL.java.lang.NullPointerException - If the given column is null.public IsNull(IsNull toCopy) throws java.lang.Exception
toCopy - The IsNull to copy.java.lang.Exception - If there is an error during the copy.public final ADQLColumn getColumn()
public final void setColumn(ADQLColumn column) throws java.lang.NullPointerException
column - The new column to compare to NULL.java.lang.NullPointerException - If the given column is null.public final boolean isNotNull()
public final void setNotNull(boolean notNull)
notNull - true for IS NOT NULL, false for IS NULL.public ADQLObject getCopy() throws java.lang.Exception
ADQLObjectgetCopy in interface ADQLObjectjava.lang.Exception - If there is any error during the copy.public java.lang.String getName()
ADQLObjectgetName in interface ADQLObjectpublic ADQLIterator adqlIterator()
ADQLObjectGets an iterator on the intern ADQL objects.
Note:The returned iterator is particularly used by a ISearchHandler
extension to browse a whole ADQL tree.
adqlIterator in interface ADQLObjectADQLIterator,
ISearchHandlerpublic java.lang.String toADQL()
ADQLObjecttoADQL in interface ADQLObject