Package org.h2.test.db
Class Db.Prepared
java.lang.Object
org.h2.test.db.Db.Prepared
- Enclosing class:
- Db
This class represents a prepared statement.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Execute the prepared statement.query()Execute the prepared query.set(byte[] x) Set the value of the current parameter.set(int x) Set the value of the current parameter.set(InputStream x) Set the value of the current parameter.Set the value of the current parameter.
-
Method Details
-
set
Set the value of the current parameter.- Parameters:
x- the value- Returns:
- itself
-
set
Set the value of the current parameter.- Parameters:
x- the value- Returns:
- itself
-
set
Set the value of the current parameter.- Parameters:
x- the value- Returns:
- itself
-
set
Set the value of the current parameter.- Parameters:
x- the value- Returns:
- itself
-
execute
public void execute()Execute the prepared statement. -
query
Execute the prepared query.- Returns:
- the result list
-