com.ibm.workplace.wcm.api.query
Class Conjunction
java.lang.Object
com.ibm.workplace.wcm.api.query.CompoundSelector
com.ibm.workplace.wcm.api.query.Association
com.ibm.workplace.wcm.api.query.Conjunction
- All Implemented Interfaces:
- QueryElement, Selector, java.io.Serializable
public final class Conjunction
- extends Association
Conjunction
associates Selectors
with Operation.AND
.
Example use of Association
s Conjunction and Disjunction
Query query = queryService.createQuery(Content.class);
Disjunction or = new Disjunction();
or.add(Selectors.nameLike("news%"));
Conjunction and = new Conjunction();
and.add(Selectors.nameLike("article%"));
and.add(ProfileSelectors.keywordsContain("news"));
or.add(and);
query.addSelector(or);
- Since:
- 7.0
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Conjunction
public Conjunction()
- Constructor
Conjunction
public Conjunction(java.util.Collection<Selector> selectors)
- Constructor
- Parameters:
selectors
- associated selectors