01: /*
02: * Copyright 2002 (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: NullLiteral.java,v 1.3 2003/08/04 16:40:35 pierreg0 Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: class NullLiteral extends SQLExpression {
14: public NullLiteral(QueryStatement qs) {
15: super (qs);
16: st.append("NULL");
17: }
18:
19: public BooleanExpression eq(SQLExpression expr) {
20: return new NullComparisonExpression(expr, true, this );
21: }
22:
23: public BooleanExpression noteq(SQLExpression expr) {
24: return new NullComparisonExpression(expr, false, this);
25: }
26: }
|