Package org.h2.test.db
Class Db.Prepared
- java.lang.Object
-
- org.h2.test.db.Db.Prepared
-
- Enclosing class:
- Db
public static class Db.Prepared extends java.lang.ObjectThis class represents a prepared statement.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Execute the prepared statement.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>query()Execute the prepared query.Db.Preparedset(byte[] x)Set the value of the current parameter.Db.Preparedset(int x)Set the value of the current parameter.Db.Preparedset(java.io.InputStream x)Set the value of the current parameter.Db.Preparedset(java.lang.String x)Set the value of the current parameter.
-
-
-
Method Detail
-
set
public Db.Prepared set(int x)
Set the value of the current parameter.- Parameters:
x- the value- Returns:
- itself
-
set
public Db.Prepared set(java.lang.String x)
Set the value of the current parameter.- Parameters:
x- the value- Returns:
- itself
-
set
public Db.Prepared set(byte[] x)
Set the value of the current parameter.- Parameters:
x- the value- Returns:
- itself
-
set
public Db.Prepared set(java.io.InputStream x)
Set the value of the current parameter.- Parameters:
x- the value- Returns:
- itself
-
execute
public void execute()
Execute the prepared statement.
-
query
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> query()
Execute the prepared query.- Returns:
- the result list
-
-