public class TimeStampBinder extends BaseColumnBinder<TimeStampVector>
jdbcType, vector
Constructor and Description |
---|
TimeStampBinder(TimeStampVector vector,
Calendar calendar)
Create a binder for a timestamp vector using the default JDBC type code.
|
TimeStampBinder(TimeStampVector vector,
Calendar calendar,
int jdbcType)
Create a binder for a timestamp vector.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(PreparedStatement statement,
int parameterIndex,
int rowIndex)
Bind the given row to the given parameter.
|
getJdbcType, getVector
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forVector, forVector
public TimeStampBinder(TimeStampVector vector, Calendar calendar)
public TimeStampBinder(TimeStampVector vector, Calendar calendar, int jdbcType)
vector
- The vector to pull values from.calendar
- Optionally, the calendar to pass to JDBC.jdbcType
- The JDBC type code to use for null values.public void bind(PreparedStatement statement, int parameterIndex, int rowIndex) throws SQLException
ColumnBinder
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 occursCopyright © 2023 The Apache Software Foundation. All rights reserved.