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: BooleanCharColumnLiteral.java,v 1.1 2003/08/11 16:01:51 pierreg0 Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: class BooleanCharColumnLiteral extends BooleanLiteral {
14:
15: public BooleanCharColumnLiteral(QueryStatement qs, boolean value) {
16: super (qs, value);
17: }
18:
19: /**
20: * Return the String value for TRUE in the database. This should be
21: * overriden by subclasses for special cases of booleans.
22: *
23: * @return The String value for TRUE in the database.
24: */
25: protected String getBooleanTrueValue() {
26: return "'Y'";
27: }
28:
29: /**
30: * Return the String value for FALSE in the database. This should be
31: * overriden by subclasses for special cases of booleans.
32: *
33: * @return The String value for FALSE in the database.
34: */
35: protected String getBooleanFalseValue() {
36: return "'N'";
37: }
38: }
|