1 /*
2 * Created on 2003-6-6 15:13:47 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 15:13:47
12 */
13 public class Or extends Combination {
14 /*** Or sql keyword */
15 public static final String COMBINATOR = "OR";
16 /*** Empty or array */
17 public static final Or[] EMPTY_ARRAY = new Or[0];
18 /*** Constructor of class Or
19 */
20 public Or() {
21 super(COMBINATOR);
22 }
23 /*** Constructor of class Or
24 * @param conditions Collection of conditions
25 */
26 public Or(Collection conditions) {
27 super(COMBINATOR, conditions);
28 }
29 /*** Constructor of class Or
30 * @param condition Condition object
31 */
32 public Or(Condition condition) {
33 super(COMBINATOR, condition);
34 }
35 /*** Constructor of class Or
36 * @param conditions Array of conditions
37 */
38 public Or(Condition[] conditions) {
39 super(COMBINATOR, conditions);
40 }
41 /*** or another criterion
42 * @param c Criterion
43 * @return This or object
44 */
45 public Or or(Condition c) {
46 return (Or) add(c);
47 }
48 }
This page was automatically generated by Maven