01: /*
02: $Header: /cvsroot/xorm/xorm/src/org/xorm/query/CompoundCondition.java,v 1.4 2003/04/02 22:38:15 wbiggs Exp $
03:
04: This file is part of XORM.
05:
06: XORM is free software; you can redistribute it and/or modify
07: it under the terms of the GNU General Public License as published by
08: the Free Software Foundation; either version 2 of the License, or
09: (at your option) any later version.
10:
11: XORM is distributed in the hope that it will be useful,
12: but WITHOUT ANY WARRANTY; without even the implied warranty of
13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: GNU General Public License for more details.
15:
16: You should have received a copy of the GNU General Public License
17: along with XORM; if not, write to the Free Software
18: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: */
20: package org.xorm.query;
21:
22: public class CompoundCondition extends Condition {
23: protected Condition lhs;
24: protected Condition rhs;
25:
26: public CompoundCondition(Condition lhs, Condition rhs) {
27: this .lhs = lhs;
28: this .rhs = rhs;
29: }
30:
31: public Object clone() {
32: CompoundCondition clone = (CompoundCondition) super .clone();
33: clone.lhs = (Condition) lhs.clone();
34: clone.rhs = (Condition) rhs.clone();
35: return clone;
36: }
37:
38: public Condition getLHS() {
39: return lhs;
40: }
41:
42: public Condition getRHS() {
43: return rhs;
44: }
45: }
|