KickJava   Java API By Example, From Geeks To Geeks.

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


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: SqlTimestampLiteral.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.Timestamp JavaDoc;
14
15
16 class SqlTimestampLiteral extends SqlTimestampExpression
17 {
18     private final Timestamp JavaDoc value;
19
20     public SqlTimestampLiteral(QueryStatement qs, ColumnMapping mapping, Timestamp 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