KickJava   Java API By Example, From Geeks To Geeks.

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


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: SqlDateLiteral.java,v 1.2 2002/10/17 21:00:58 pierreg0 Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13 import java.sql.Date JavaDoc;
14
15
16 class SqlDateLiteral extends SqlDateExpression
17 {
18     private final Date JavaDoc value;
19
20     public SqlDateLiteral(QueryStatement qs, ColumnMapping mapping, Date JavaDoc value)
21     {
22         super(qs);
23
24         this.value = value;
25         st.appendParameter(mapping, value);
26     }
27
28     public String JavaDoc toString()
29     {
30         return super.toString() + " = " + value.toString();
31     }
32 }
33
Popular Tags