1 | /* |
2 | * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0, |
3 | * and the EPL 1.0 (http://h2database.com/html/license.html). |
4 | * Initial Developer: H2 Group |
5 | */ |
6 | package org.h2.expression; |
7 | |
8 | import org.h2.value.Value; |
9 | import org.h2.value.ValueBoolean; |
10 | |
11 | /** |
12 | * Represents a condition returning a boolean value, or NULL. |
13 | */ |
14 | abstract class Condition extends Expression { |
15 | |
16 | @Override |
17 | public int getType() { |
18 | return Value.BOOLEAN; |
19 | } |
20 | |
21 | @Override |
22 | public int getScale() { |
23 | return 0; |
24 | } |
25 | |
26 | @Override |
27 | public long getPrecision() { |
28 | return ValueBoolean.PRECISION; |
29 | } |
30 | |
31 | @Override |
32 | public int getDisplaySize() { |
33 | return ValueBoolean.DISPLAY_SIZE; |
34 | } |
35 | |
36 | } |