com.ibm.workplace.wcm.api.query
Class Conjunction

java.lang.Object
  extended by com.ibm.workplace.wcm.api.query.CompoundSelector
      extended by com.ibm.workplace.wcm.api.query.Association
          extended by 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 Associations 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

Constructor Summary
Conjunction()
          Constructor
Conjunction(java.util.Collection<Selector> selectors)
          Constructor
 
Method Summary
 
Methods inherited from class com.ibm.workplace.wcm.api.query.Association
add, add, add, createAssociation, getOperator, getSelectors, toString
 
Methods inherited from class com.ibm.workplace.wcm.api.query.CompoundSelector
getElements, hasElements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Conjunction

public Conjunction()
Constructor


Conjunction

public Conjunction(java.util.Collection<Selector> selectors)
Constructor

Parameters:
selectors - associated selectors