KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright 2002 (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: NullLiteral.java,v 1.3 2003/08/04 16:40:35 pierreg0 Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13
14 class NullLiteral extends SQLExpression
15 {
16     public NullLiteral(QueryStatement qs)
17     {
18         super(qs);
19         st.append("NULL");
20     }
21
22     public BooleanExpression eq(SQLExpression expr)
23     {
24         return new NullComparisonExpression(expr, true, this);
25     }
26
27     public BooleanExpression noteq(SQLExpression expr)
28     {
29         return new NullComparisonExpression(expr, false, this);
30     }
31 }
32
Popular Tags