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