|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.sql.lang.Criteria
com.metamatrix.query.sql.lang.PredicateCriteria
com.metamatrix.query.sql.proc.TranslateCriteria
public class TranslateCriteria
This object represents the criteria used in the stored procedure language that translates the portion of the user's criteria by doing symbol mapping to the elements of the physical group that defines the virtual group and translating the user's criteria using the element-expressions pairs represented as a list of comapreCriteria on this this object.
Constructor Summary | |
---|---|
TranslateCriteria()
Constructor for TranslateCriteria. |
|
TranslateCriteria(CriteriaSelector selector)
Constructor for TranslateCriteria. |
|
TranslateCriteria(CriteriaSelector selector,
java.util.List translations)
Constructor for TranslateCriteria. |
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
void |
addTranslation(CompareCriteria criteria)
Add a comparecriteria(element-value pair) to the list used to translate the user's criteria. |
java.lang.Object |
clone()
Deep clone statement to produce a new identical statement. |
boolean |
equals(java.lang.Object obj)
Compare two TranslateCriteria for equality. |
CriteriaSelector |
getSelector()
Get the CriteriaSelector |
java.util.List |
getTranslations()
Get a list of comparecriteria(element-value pairs) used to translate the user's criteria. |
int |
hashCode()
Get hashcode for TranslateCriteria. |
boolean |
hasTranslations()
Return a boolean indicating if the object has any translations. |
void |
setSelector(CriteriaSelector selector)
Set the CriteriaSelector |
void |
setTranslations(java.util.List translations)
Set a list of comparecriteria(element-value pairs) used to translate the user's criteria. |
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
Methods inherited from class com.metamatrix.query.sql.lang.Criteria |
---|
combineCriteria, combineCriteria, combineCriteria, separateCriteriaByAnd, toConjunctiveNormalForm, toDisjunctiveNormalForm |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TranslateCriteria()
public TranslateCriteria(CriteriaSelector selector)
selector
- The CriteriaSelector
of this objpublic TranslateCriteria(CriteriaSelector selector, java.util.List translations)
selector
- The CriteriaSelector
of this objcritCollect
- A list of comparecriteria used to translate user's criteriaMethod Detail |
---|
public CriteriaSelector getSelector()
CriteriaSelector
CriteriaSelector
of this objpublic void setSelector(CriteriaSelector selector)
CriteriaSelector
selector
- The CriteriaSelector
of this objpublic boolean hasTranslations()
public void setTranslations(java.util.List translations)
critCollect
- A list of criteria used to translate user's criteriapublic void addTranslation(CompareCriteria criteria)
criteria
- A ComapareCriteria
object to be added to a collectionpublic java.util.List getTranslations()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
clone
in interface LanguageObject
clone
in class PredicateCriteria
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 Criteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |