Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #5
0
 /** Used to NOT the next clause specified. */
 public Where<T, ID> not() {
   addNeedsFuture(new Not());
   return this;
 }
Beispiel #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;
 }