01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.workflow.query;
09:
10: //base classes
11: import java.util.ArrayList;
12:
13: //project specific classes
14:
15: //other classes
16:
17: public class AndQC implements QueryContainer {
18:
19: private QueryContainer query1 = null;
20: private QueryContainer query2 = null;
21:
22: private AndQC() {
23: }
24:
25: public final static QueryContainer createQuery(
26: QueryContainer inQuery1, QueryContainer inQuery2) {
27:
28: AndQC outValue = new AndQC();
29:
30: outValue.query1 = inQuery1;
31: outValue.query2 = inQuery2;
32:
33: return outValue;
34: }
35:
36: //public void prepareQuery(StringBuffer inSb, ArrayList inParameters,
37: // QueryVendor inQv) {
38: //
39: // inQv.prepareQuery(inSb, inParameters, this);
40: //}
41:
42: public QueryContainer getLeftQuery() {
43: return this .query1;
44: }
45:
46: public QueryContainer getRightQuery() {
47: return this.query2;
48: }
49: }
|