KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > store > OIDRangeTestExpression


1 /*
2  * Copyright 2004 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: OIDRangeTestExpression.java,v 1.4 2004/01/18 03:01:06 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13
14 class OIDRangeTestExpression extends BooleanExpression
15 {
16     public OIDRangeTestExpression(QueryStatement qs, QueryStatement.QueryColumn qsc, OID low, OID high)
17     {
18         super(qs, qsc);
19
20         ColumnMapping m = (ColumnMapping)qs.getStoreManager().getDatabaseAdapter().getMapping(OID.class);
21         st.append(" BETWEEN ");
22         st.appendParameter(m, low);
23         st.append(" AND ");
24         st.appendParameter(m, high);
25
26         lowestOperator = OP_BETWEEN;
27     }
28 }
29
Popular Tags