| 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; |
| 7 |
|
| 8 |
import org.h2.message.DbException; |
| 9 |
|
| 10 |
/** |
| 11 |
* An expression with variable number of parameters. |
| 12 |
*/ |
| 13 |
public interface ExpressionWithVariableParameters { |
| 14 |
|
| 15 |
/** |
| 16 |
* Adds the parameter expression. |
| 17 |
* |
| 18 |
* @param param |
| 19 |
* the expression |
| 20 |
*/ |
| 21 |
void addParameter(Expression param); |
| 22 |
|
| 23 |
/** |
| 24 |
* This method must be called after all the parameters have been set. It |
| 25 |
* checks if the parameter count is correct when required by the |
| 26 |
* implementation. |
| 27 |
* |
| 28 |
* @throws DbException |
| 29 |
* if the parameter count is incorrect. |
| 30 |
*/ |
| 31 |
void doneWithParameters() throws DbException; |
| 32 |
|
| 33 |
} |