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: SqlDateLiteral.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.Date;
14:
15: class SqlDateLiteral extends SqlDateExpression {
16: private final Date value;
17:
18: public SqlDateLiteral(QueryStatement qs, ColumnMapping mapping,
19: Date 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: }
|