Package com.illumon.iris.utils
Class JdbcTypeMapper.TimeLocalTimeDataTypeMapping
java.lang.Object
com.illumon.iris.utils.JdbcTypeMapper.DataTypeMapping<T>
com.illumon.iris.utils.JdbcTypeMapper.TimeDataTypeMappingBase<LocalTime>
com.illumon.iris.utils.JdbcTypeMapper.TimeLocalTimeDataTypeMapping
- Enclosing class:
- JdbcTypeMapper
public static class JdbcTypeMapper.TimeLocalTimeDataTypeMapping
extends JdbcTypeMapper.TimeDataTypeMappingBase<LocalTime>
-
Method Summary
Modifier and TypeMethodDescriptionvoidbindObject(PreparedStatement stmt, int parameterIndex, JdbcTypeMapper.Context context, LocalTime localTime) Bind the given value to the given prepared statement.getObject(ResultSet resultSet, int columnIndex, JdbcTypeMapper.Context context, LocalTime defaultValue) Get a value from the current row in the given ResultSet and column and convert to the target type.Methods inherited from class com.illumon.iris.utils.JdbcTypeMapper.TimeDataTypeMappingBase
columnSourceBinder, columnSourcePrevBinderMethods inherited from class com.illumon.iris.utils.JdbcTypeMapper.DataTypeMapping
bindByte, bindChar, bindDouble, bindFloat, bindInt, bindLong, bindShort, getByte, getByte, getChar, getChar, getDbType, getDouble, getDouble, getFloat, getFloat, getInputType, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getObjectCodecArguments, getObjectCodecArguments, getShort, getShort
-
Method Details
-
getObject
public LocalTime getObject(ResultSet resultSet, int columnIndex, JdbcTypeMapper.Context context, LocalTime defaultValue) throws SQLException Description copied from class:JdbcTypeMapper.DataTypeMappingGet a value from the current row in the given ResultSet and column and convert to the target type. If the source value is null, return the given default value. A Context object is provided for additional context or "settings" regarding how to perform the conversion (for example, the source time zone).- Specified by:
getObjectin classJdbcTypeMapper.DataTypeMapping<LocalTime>- Parameters:
resultSet- from which to extract the value.columnIndex- ResultSet column from which to extract the value (1-based).context- conversion context information.defaultValue- value to return in case the source value is null.- Returns:
- the converted value
- Throws:
SQLException- if an error occurs
-
getObjectCodec
- Overrides:
getObjectCodecin classJdbcTypeMapper.DataTypeMapping<LocalTime>
-
bindObject
public void bindObject(PreparedStatement stmt, int parameterIndex, JdbcTypeMapper.Context context, LocalTime localTime) throws SQLException Description copied from class:JdbcTypeMapper.DataTypeMappingBind the given value to the given prepared statement. All concrete implementations must provide this method. If the given value is null or matches the Deephaven null-equivalent, it should be bound as SQL NULL.- Specified by:
bindObjectin classJdbcTypeMapper.DataTypeMapping<LocalTime>- Parameters:
stmt- statement to which to bind the given valueparameterIndex- parameter index to bindcontext- context information for the bindinglocalTime- value to bind- Throws:
SQLException- if an error occurs
-