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: SqlTimestampLiteral.java,v 1.2 2002/10/17 21:00:58 pierreg0 Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: import java.sql.Timestamp;
14:
15: class SqlTimestampLiteral extends SqlTimestampExpression {
16: private final Timestamp value;
17:
18: public SqlTimestampLiteral(QueryStatement qs,
19: ColumnMapping mapping, Timestamp value) {
20: super (qs);
21:
22: this .value = value;
23: st.appendParameter(mapping, value);
24: }
25:
26: public String toString() {
27: return super .toString() + " = " + value.toString();
28: }
29: }
|