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 java.sql.SQLException;
09:
10: import org.h2.value.Value;
11:
12: /**
13: * The interface for client side (remote) and server side parameters.
14: */
15: public interface ParameterInterface {
16:
17: /**
18: * Set the value of the parameter.
19: *
20: * @param value the new value
21: */
22: void setValue(Value value);
23:
24: /**
25: * Get the value of the parameter if set.
26: *
27: * @return the value or null
28: */
29: Value getParamValue() throws SQLException;
30:
31: /**
32: * Check if the value is set.
33: *
34: * @throws SQLException if not set.
35: */
36: void checkSet() throws SQLException;
37: }
|