01: /*
02: * Copyright 2004 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: OIDRangeTestExpression.java,v 1.4 2004/01/18 03:01:06 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: class OIDRangeTestExpression extends BooleanExpression {
14: public OIDRangeTestExpression(QueryStatement qs,
15: QueryStatement.QueryColumn qsc, OID low, OID high) {
16: super (qs, qsc);
17:
18: ColumnMapping m = (ColumnMapping) qs.getStoreManager()
19: .getDatabaseAdapter().getMapping(OID.class);
20: st.append(" BETWEEN ");
21: st.appendParameter(m, low);
22: st.append(" AND ");
23: st.appendParameter(m, high);
24:
25: lowestOperator = OP_BETWEEN;
26: }
27: }
|