|
||||||||||
| 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. |
java.lang.Object |
clone()
Deep copy of object. |
boolean |
equals(java.lang.Object obj)
Override equals() method. |
QueryCommand |
getCommand()
Returns the subquery Command object |
java.lang.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 java.lang.String getContextSymbol()
getContextSymbol in interface ContextReferencepublic Expression getValueExpression()
getValueExpression in interface ContextReferencepublic 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 LanguageObjectvisitor - Visitor being usedpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Other object
public ExistsCriteria.SubqueryHint getSubqueryHint()
public void setSubqueryHint(ExistsCriteria.SubqueryHint subqueryHint)
public java.lang.Object clone()
clone in interface LanguageObjectclone in class PredicateCriteriaObject.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 | |||||||||