public class JdbcParameterBinder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JdbcParameterBinder.Builder
A builder for a
JdbcParameterBinder . |
Modifier and Type | Method and Description |
---|---|
static JdbcParameterBinder.Builder |
builder(PreparedStatement statement,
VectorSchemaRoot root)
Initialize a binder with a builder.
|
boolean |
next()
Bind the next row of data to the parameters of the statement.
|
void |
reset()
Reset the binder (so the root can be updated with new data).
|
public static JdbcParameterBinder.Builder builder(PreparedStatement statement, VectorSchemaRoot root)
statement
- The statement to bind to. The binder does not maintain ownership of the statement.root
- The VectorSchemaRoot
to pull data from. The binder does not maintain ownership
of the vector schema root.public void reset()
public boolean next() throws SQLException
PreparedStatement.executeUpdate()
, or PreparedStatement.addBatch()
.SQLException
Copyright © 2023 The Apache Software Foundation. All rights reserved.