|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.sql.lang.Criteria
org.teiid.query.sql.lang.PredicateCriteria
org.teiid.query.sql.lang.ExistsCriteria
public class ExistsCriteria
This predicate criteria implements the "exists" predicate, which has a subquery in it. For example, "EXISTS (Select EmployeeID FROM Employees WHERE EmployeeName = 'Smith')".
Nested Class Summary | |
---|---|
static class |
ExistsCriteria.SubqueryHint
|
Nested classes/interfaces inherited from class org.teiid.query.sql.lang.PredicateCriteria |
---|
PredicateCriteria.Negatable |
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
---|
LanguageObject.Util |
Constructor Summary | |
---|---|
ExistsCriteria()
Default constructor |
|
ExistsCriteria(QueryCommand subqueryCommand)
|
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
Object |
clone()
Deep copy of object. |
boolean |
equals(Object obj)
Override equals() method. |
QueryCommand |
getCommand()
Returns the subquery Command object |
String |
getContextSymbol()
|
ExistsCriteria.SubqueryHint |
getSubqueryHint()
|
Expression |
getValueExpression()
|
int |
hashCode()
Get hash code. |
boolean |
isNegated()
|
void |
negate()
|
void |
setCommand(QueryCommand subqueryCommand)
Sets the subquery Command object |
void |
setNegated(boolean negated)
|
void |
setShouldEvaluate(boolean shouldEvaluate)
|
void |
setSubqueryHint(ExistsCriteria.SubqueryHint subqueryHint)
|
boolean |
shouldEvaluate()
|
Methods inherited from class org.teiid.query.sql.lang.Criteria |
---|
applyDemorgan, combineCriteria, combineCriteria, combineCriteria, getType, isResolved, separateCriteriaByAnd, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExistsCriteria()
public ExistsCriteria(QueryCommand subqueryCommand)
Method Detail |
---|
public boolean shouldEvaluate()
public void setShouldEvaluate(boolean shouldEvaluate)
public String getContextSymbol()
getContextSymbol
in interface ContextReference
public Expression getValueExpression()
getValueExpression
in interface ContextReference
public QueryCommand getCommand()
SubqueryContainer
getCommand
in interface SubqueryContainer<QueryCommand>
public void setCommand(QueryCommand subqueryCommand)
SubqueryContainer
setCommand
in interface SubqueryContainer<QueryCommand>
subqueryCommand
- the subquery Command objectpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- Other object
public ExistsCriteria.SubqueryHint getSubqueryHint()
public void setSubqueryHint(ExistsCriteria.SubqueryHint subqueryHint)
public Object clone()
clone
in interface LanguageObject
clone
in class PredicateCriteria
Object.clone()
public boolean isNegated()
public void setNegated(boolean negated)
public void negate()
negate
in interface PredicateCriteria.Negatable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |