View Javadoc
1 /* 2 * Created on 2003-6-6 14:17:24 by joel guo 3 * 4 * vTradEx Information Technology Inc. 5 */ 6 package com.cyclops.dbdigger.sql; 7 import java.util.Collection; 8 /*** Add description <font color="red">HERE</font>! 9 * 10 * @author <a href="mailto:joeblack.guo@vtradex.com">joel guo</a> 11 * @since 2003-6-6 14:17:24 12 */ 13 public class And extends Combination { 14 /*** And keyword as combinator */ 15 public static final String COMBINATOR = "AND"; 16 /*** Empty And object array */ 17 public static final And[] EMPTY_ARRAY = new And[0]; 18 /*** Create empty And object */ 19 public And() { 20 super(COMBINATOR); 21 } 22 /*** Constructor of class And 23 * @param conditions Collection of conditions 24 */ 25 public And(Collection conditions) { 26 super(COMBINATOR, conditions); 27 } 28 /*** Constructor of class And 29 * @param condition Condition object 30 */ 31 public And(Condition condition) { 32 super(COMBINATOR, condition); 33 } 34 /*** Constructor of class And 35 * @param conditions Array of conditions 36 */ 37 public And(Condition[] conditions) { 38 super(COMBINATOR, conditions); 39 } 40 /*** Method and() in class And 41 * @param c Another Criterion to be and 42 * @return It self 43 */ 44 public And and(Condition c) { 45 return (And) add(c); 46 } 47 }

This page was automatically generated by Maven