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