|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.sql.proc.CriteriaSelector
public class CriteriaSelector
This class represents the criteria present on the user's query. The type of
criteria and the elements on which it is specified are listed in this object,
this object is used by HasCriteria
and TranslateCriteria
objects to determine if a particular type of criteria is present on one or more
elements on a user's query
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
---|
LanguageObject.Util |
Field Summary | |
---|---|
static int |
BETWEEN
|
static int |
COMPARE_EQ
|
static int |
COMPARE_GE
|
static int |
COMPARE_GT
|
static int |
COMPARE_LE
|
static int |
COMPARE_LT
|
static int |
COMPARE_NE
|
static int |
IN
|
static int |
IS_NULL
|
static int |
LIKE
|
static int |
NO_TYPE
|
Constructor Summary | |
---|---|
CriteriaSelector()
Constructor for CriteriaSelector. |
|
CriteriaSelector(int selectorType,
java.util.List elements)
Constructor for CriteriaSelector. |
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
void |
addElement(ElementSymbol element)
Add an element to the collection of elements on which criteria is pecified on the user's query |
java.lang.Object |
clone()
Deep clone statement to produce a new identical statement. |
boolean |
equals(java.lang.Object obj)
Compare two CriteriaSelector for equality. |
java.util.List |
getElements()
Get elements on which criteria is pecified on the user's query |
int |
getSelectorType()
Get the type of criteria on the user query's elements |
boolean |
hasElements()
Return a boolean indicating if the seletor has any elements |
int |
hashCode()
Get hashcode for CriteriaSelector. |
void |
setElements(java.util.List elements)
Set elements on which criteria is pecified on the user's query |
void |
setSelectorType(int type)
Set the type of criteria on the user query's elements |
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int COMPARE_EQ
public static final int COMPARE_NE
public static final int COMPARE_LT
public static final int COMPARE_GT
public static final int COMPARE_LE
public static final int COMPARE_GE
public static final int LIKE
public static final int IN
public static final int IS_NULL
public static final int BETWEEN
public static final int NO_TYPE
Constructor Detail |
---|
public CriteriaSelector()
public CriteriaSelector(int selectorType, java.util.List elements)
selectorType
- The type criteria presents on the elementselements
- The elements on whichMethod Detail |
---|
public int getSelectorType()
public void setSelectorType(int type)
type
- The type of criteriapublic java.util.List getElements()
public void setElements(java.util.List elements)
elements
- A collection of elements used in criteriapublic void addElement(ElementSymbol element)
element
- The elementSymbol object being addedpublic boolean hasElements()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
clone
in interface LanguageObject
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |