01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (http://h2database.com/html/license.html).
04: * Initial Developer: H2 Group
05: */
06: package org.h2.expression;
07:
08: import org.h2.value.Value;
09: import org.h2.value.ValueBoolean;
10:
11: /**
12: * Represents a condition returning a boolean value, or NULL.
13: */
14: public abstract class Condition extends Expression {
15:
16: public int getType() {
17: return Value.BOOLEAN;
18: }
19:
20: public int getScale() {
21: return 0;
22: }
23:
24: public long getPrecision() {
25: return ValueBoolean.PRECISION;
26: }
27:
28: public int getDisplaySize() {
29: return ValueBoolean.DISPLAY_SIZE;
30: }
31:
32: }
|