コード例 #1
0
ファイル: Where.java プロジェクト: rabbpigPan/TouTouDa
 /** 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;
 }
コード例 #2
0
ファイル: Where.java プロジェクト: rabbpigPan/TouTouDa
 /** 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;
 }
コード例 #3
0
ファイル: Where.java プロジェクト: rabbpigPan/TouTouDa
 /** 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;
 }
コード例 #4
0
ファイル: Where.java プロジェクト: kushpatel/MetroSub
 /** 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;
 }
コード例 #5
0
ファイル: Where.java プロジェクト: kushpatel/MetroSub
 /** Used to NOT the next clause specified. */
 public Where<T, ID> not() {
   addNeedsFuture(new Not());
   return this;
 }
コード例 #6
0
ファイル: Where.java プロジェクト: kushpatel/MetroSub
 /** 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;
 }