public interface ColumnBinder
Modifier and Type | Method and Description |
---|---|
void |
bind(PreparedStatement statement,
int parameterIndex,
int rowIndex)
Bind the given row to the given parameter.
|
static ColumnBinder |
forVector(FieldVector vector)
Create a column binder for a vector, using the default JDBC type code for null values.
|
static ColumnBinder |
forVector(FieldVector vector,
Integer jdbcType)
Create a column binder for a vector, overriding the JDBC type code used for null values.
|
int |
getJdbcType()
Get the JDBC type code used by this binder.
|
FieldVector |
getVector()
Get the vector used by this binder.
|
void bind(PreparedStatement statement, int parameterIndex, int rowIndex) throws SQLException
statement
- The statement to bind to.parameterIndex
- The parameter to bind to (1-indexed)rowIndex
- The row to bind values from (0-indexed)SQLException
- if an error occursint getJdbcType()
Types
.FieldVector getVector()
static ColumnBinder forVector(FieldVector vector)
static ColumnBinder forVector(FieldVector vector, Integer jdbcType)
vector
- The vector that the column binder will wrap.jdbcType
- The JDBC type code to use (or null to use the default).Copyright © 2023 The Apache Software Foundation. All rights reserved.