File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\expression\Condition.java.html

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