Class TimestampR2dbcTypeHandlerAdapter
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.type.defaults.TimestampR2dbcTypeHandlerAdapter
-
- All Implemented Interfaces:
R2dbcTypeHandlerAdapter<Timestamp>
public class TimestampR2dbcTypeHandlerAdapter extends Object implements R2dbcTypeHandlerAdapter<Timestamp>
The type Timestamp r2dbc type handler adapter.- Version:
- 1.0.0
- Author:
- Gang Cheng
-
-
Constructor Summary
Constructors Constructor Description TimestampR2dbcTypeHandlerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Timestamp>adaptClazz()adapted classTimestampgetResult(io.r2dbc.spi.Row row, io.r2dbc.spi.RowMetadata rowMetadata, int columnIndex)get result by columnIndexTimestampgetResult(io.r2dbc.spi.Row row, io.r2dbc.spi.RowMetadata rowMetadata, String columnName)get result by columnNamevoidsetParameter(io.r2dbc.spi.Statement statement, ParameterHandlerContext parameterHandlerContext, Timestamp parameter)setParameter
-
-
-
Method Detail
-
adaptClazz
public Class<Timestamp> adaptClazz()
Description copied from interface:R2dbcTypeHandlerAdapteradapted class- Specified by:
adaptClazzin interfaceR2dbcTypeHandlerAdapter<Timestamp>- Returns:
- class
-
setParameter
public void setParameter(io.r2dbc.spi.Statement statement, ParameterHandlerContext parameterHandlerContext, Timestamp parameter)Description copied from interface:R2dbcTypeHandlerAdaptersetParameter- Specified by:
setParameterin interfaceR2dbcTypeHandlerAdapter<Timestamp>- Parameters:
statement- the statementparameterHandlerContext- the parameter handler contextparameter- the parameter
-
getResult
public Timestamp getResult(io.r2dbc.spi.Row row, io.r2dbc.spi.RowMetadata rowMetadata, String columnName)
Description copied from interface:R2dbcTypeHandlerAdapterget result by columnName- Specified by:
getResultin interfaceR2dbcTypeHandlerAdapter<Timestamp>- Parameters:
row- the rowrowMetadata- the row metadatacolumnName- the column name- Returns:
- result
-
getResult
public Timestamp getResult(io.r2dbc.spi.Row row, io.r2dbc.spi.RowMetadata rowMetadata, int columnIndex)
Description copied from interface:R2dbcTypeHandlerAdapterget result by columnIndex- Specified by:
getResultin interfaceR2dbcTypeHandlerAdapter<Timestamp>- Parameters:
row- the rowrowMetadata- the row metadatacolumnIndex- the column index- Returns:
- result
-
-