|
Teiid 8.3.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.language.LanguageUtil
public final class LanguageUtil
Helpful utility methods to work with language interfaces.
Method Summary | |
---|---|
static Condition |
combineCriteria(Condition primaryCrit,
Condition additionalCrit,
LanguageFactory languageFactory)
This utility method can be used to combine two criteria using an AND. |
static Condition |
combineCriteria(List<Condition> crits)
Combines a list of conditions under a single AndOr |
static List<Condition> |
separateCriteriaByAnd(Condition criteria)
Take a criteria, which may be null, a single IPredicateCriteria or a complex criteria built using ICompoundCriteria and breaks it apart at ANDs such that a List of ICriteria conjuncts are returned. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final List<Condition> separateCriteriaByAnd(Condition criteria)
criteria
- Criteria to break, may be null
public static Condition combineCriteria(Condition primaryCrit, Condition additionalCrit, LanguageFactory languageFactory)
primaryCrit
- Primary criteria - may be modifiedadditionalCrit
- Won't be modified, but will likely be attached to the returned critlanguageFactory
- Will be used to construct new ICompoundCriteria if necessary
public static Condition combineCriteria(List<Condition> crits)
crits
-
|
Teiid 8.3.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |