Package org.mariadb.r2dbc.codec.list
Class LocalTimeCodec
- java.lang.Object
-
- org.mariadb.r2dbc.codec.list.LocalTimeCodec
-
-
Field Summary
Fields Modifier and Type Field Description static LocalTimeCodecINSTANCE
-
Constructor Summary
Constructors Constructor Description LocalTimeCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(ColumnDefinitionPacket column, Class<?> type)booleancanEncode(Class<?> value)LocalTimedecodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends LocalTime> type, ExceptionFactory factory)LocalTimedecodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends LocalTime> type, ExceptionFactory factory)BindValueencodeBinary(io.netty.buffer.ByteBufAllocator allocator, Object value, ExceptionFactory factory)BindValueencodeText(io.netty.buffer.ByteBufAllocator allocator, Object value, Context context, ExceptionFactory factory)DataTypegetBinaryEncodeType()static int[]parseTime(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, ExceptionFactory factory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.r2dbc.codec.Codec
createEncodedValue, createEncodedValue
-
-
-
-
Field Detail
-
INSTANCE
public static final LocalTimeCodec INSTANCE
-
-
Method Detail
-
parseTime
public static int[] parseTime(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, ExceptionFactory factory)
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
-
canEncode
public boolean canEncode(Class<?> value)
-
decodeText
public LocalTime decodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends LocalTime> type, ExceptionFactory factory)
- Specified by:
decodeTextin interfaceCodec<LocalTime>
-
decodeBinary
public LocalTime decodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends LocalTime> type, ExceptionFactory factory)
- Specified by:
decodeBinaryin interfaceCodec<LocalTime>
-
encodeText
public BindValue encodeText(io.netty.buffer.ByteBufAllocator allocator, Object value, Context context, ExceptionFactory factory)
- Specified by:
encodeTextin interfaceCodec<LocalTime>
-
encodeBinary
public BindValue encodeBinary(io.netty.buffer.ByteBufAllocator allocator, Object value, ExceptionFactory factory)
- Specified by:
encodeBinaryin interfaceCodec<LocalTime>
-
getBinaryEncodeType
public DataType getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<LocalTime>
-
-