public class ScalarSubquery extends Object implements Expression, SubqueryContainer.Evaluatable<QueryCommand>, ContextReference
SubqueryContainer.Evaluatable<T extends Command>
LanguageObject.Util
Constructor and Description |
---|
ScalarSubquery(QueryCommand subqueryCommand) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
Object |
clone()
Returns a safe clone
|
boolean |
equals(Object obj)
Compare this ScalarSubquery to another ScalarSubquery for equality.
|
QueryCommand |
getCommand()
Returns the subquery Command object
|
String |
getContextSymbol() |
ExistsCriteria.SubqueryHint |
getSubqueryHint() |
Class<?> |
getType()
Get the return type of this expression.
|
int |
hashCode()
Get hashcode for the object
|
void |
setCommand(QueryCommand command)
Sets the command.
|
void |
setShouldEvaluate(boolean shouldEvaluate) |
void |
setSubqueryHint(ExistsCriteria.SubqueryHint subqueryHint) |
void |
setType(Class<?> type)
Set type of ScalarSubquery
|
boolean |
shouldEvaluate() |
String |
toString()
Returns string representation of this object.
|
public ScalarSubquery(QueryCommand subqueryCommand)
public boolean shouldEvaluate()
shouldEvaluate
in interface SubqueryContainer.Evaluatable<QueryCommand>
public void setShouldEvaluate(boolean shouldEvaluate)
setShouldEvaluate
in interface SubqueryContainer.Evaluatable<QueryCommand>
public String getContextSymbol()
getContextSymbol
in interface ContextReference
public Class<?> getType()
Expression
getType
in interface Expression
Expression.getType()
public void setType(Class<?> type)
type
- New typepublic QueryCommand getCommand()
SubqueryContainer
getCommand
in interface SubqueryContainer<QueryCommand>
public void setCommand(QueryCommand command)
setCommand
in interface SubqueryContainer<QueryCommand>
command
- the subquery Command objectpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic boolean equals(Object obj)
public int hashCode()
public Object clone()
clone
in interface LanguageObject
clone
in class Object
Object.clone()
public String toString()
public ExistsCriteria.SubqueryHint getSubqueryHint()
public void setSubqueryHint(ExistsCriteria.SubqueryHint subqueryHint)
Copyright © 2018 JBoss by Red Hat. All rights reserved.