Exemplo n.º 1
0
 /** Used to NOT the next clause specified. */
 public Where<T, ID> not() {
   /*
    * Special circumstance here when we have a needs future with a not. Something like and().not().like(...). In
    * this case we satisfy the and()'s future as the not() but the not() becomes the new needs-future.
    */
   Not not = new Not();
   addClause(not);
   addNeedsFuture(not);
   return this;
 }
Exemplo n.º 2
0
 /** OR operation which takes the previous clause and the next clause and OR's them together. */
 public Where<T, ID> or() {
   ManyClause clause = new ManyClause(pop("OR"), ManyClause.OR_OPERATION);
   push(clause);
   addNeedsFuture(clause);
   return this;
 }
Exemplo n.º 3
0
 /** AND operation which takes the previous clause and the next clause and AND's them together. */
 public Where<T, ID> and() {
   ManyClause clause = new ManyClause(pop("AND"), ManyClause.AND_OPERATION);
   push(clause);
   addNeedsFuture(clause);
   return this;
 }
Exemplo n.º 4
0
 /** OR operation which takes the previous clause and the next clause and OR's them together. */
 public Where<T, ID> or() {
   addNeedsFuture(new ManyClause(pop("OR"), ManyClause.OR_OPERATION));
   return this;
 }
Exemplo n.º 5
0
 /** Used to NOT the next clause specified. */
 public Where<T, ID> not() {
   addNeedsFuture(new Not());
   return this;
 }
Exemplo n.º 6
0
 /** AND operation which takes the previous clause and the next clause and AND's them together. */
 public Where<T, ID> and() {
   addNeedsFuture(new ManyClause(pop("AND"), ManyClause.AND_OPERATION));
   return this;
 }