com.avaje.ebean
Interface Junction

All Superinterfaces:
Expression, Serializable

public interface Junction
extends Expression

    

Represents a Conjunction or a Disjunction.

Basically with a Conjunction you join together many expressions with AND, and with a Disjunction you join together many expressions with OR.

  Query q = Ebean.createQuery(Person.class);
  q.where().disjunction()
        .add(Expr.like("name","Rob%"))
        .add(Expr.eq("status",Status.NEW))
 

See Also:
Query.where(), ExpressionList.conjunction(), ExpressionList.disjunction()

Method Summary
 Junction add(Expression expression)
          Add an expression to the Conjunction/Disjunction.
 

Method Detail

add

Junction add(Expression expression)
Add an expression to the Conjunction/Disjunction.

See Also:
ExpressionList.conjunction(), ExpressionList.disjunction()


Copyright © 2010. All Rights Reserved.