| 1 |
/* |
| 2 |
* Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 3 |
* and the EPL 1.0 (https://h2database.com/html/license.html). |
| 4 |
* Initial Developer: H2 Group |
| 5 |
*/ |
| 6 |
package org.h2.expression.analysis; |
| 7 |
|
| 8 |
/** |
| 9 |
* Window frame units. |
| 10 |
*/ |
| 11 |
public enum WindowFrameUnits { |
| 12 |
|
| 13 |
/** |
| 14 |
* ROWS unit. |
| 15 |
*/ |
| 16 |
ROWS, |
| 17 |
|
| 18 |
/** |
| 19 |
* RANGE unit. |
| 20 |
*/ |
| 21 |
RANGE, |
| 22 |
|
| 23 |
/** |
| 24 |
* GROUPS unit. |
| 25 |
*/ |
| 26 |
GROUPS, |
| 27 |
|
| 28 |
; |
| 29 |
|
| 30 |
/** |
| 31 |
* Returns SQL representation. |
| 32 |
* |
| 33 |
* @return SQL representation. |
| 34 |
* @see org.h2.expression.Expression#getSQL(int) |
| 35 |
*/ |
| 36 |
public String getSQL() { |
| 37 |
return name(); |
| 38 |
} |
| 39 |
|
| 40 |
} |