public class OffsetDateTimeCodec extends Object implements com.singlestore.jdbc.codec.Codec<OffsetDateTime>
| Modifier and Type | Field and Description |
|---|---|
static OffsetDateTimeCodec |
INSTANCE
default instance
|
| Constructor and Description |
|---|
OffsetDateTimeCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(ColumnDefinitionPacket column,
Class<?> type) |
boolean |
canEncode(Object value) |
String |
className() |
OffsetDateTime |
decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
ColumnDefinitionPacket column,
Calendar calParam) |
OffsetDateTime |
decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
ColumnDefinitionPacket column,
Calendar calParam) |
void |
encodeBinary(PacketWriter encoder,
Object value,
Calendar calParam,
Long length) |
void |
encodeText(PacketWriter encoder,
Context context,
Object val,
Calendar calParam,
Long length) |
int |
getBinaryEncodeType() |
public static final OffsetDateTimeCodec INSTANCE
public String className()
className in interface com.singlestore.jdbc.codec.Codec<OffsetDateTime>public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
canDecode in interface com.singlestore.jdbc.codec.Codec<OffsetDateTime>public boolean canEncode(Object value)
canEncode in interface com.singlestore.jdbc.codec.Codec<OffsetDateTime>public OffsetDateTime decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar calParam) throws SQLDataException
decodeText in interface com.singlestore.jdbc.codec.Codec<OffsetDateTime>SQLDataExceptionpublic OffsetDateTime decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar calParam) throws SQLDataException
decodeBinary in interface com.singlestore.jdbc.codec.Codec<OffsetDateTime>SQLDataExceptionpublic void encodeText(PacketWriter encoder, Context context, Object val, Calendar calParam, Long length) throws IOException
encodeText in interface com.singlestore.jdbc.codec.Codec<OffsetDateTime>IOExceptionpublic void encodeBinary(PacketWriter encoder, Object value, Calendar calParam, Long length) throws IOException
encodeBinary in interface com.singlestore.jdbc.codec.Codec<OffsetDateTime>IOExceptionpublic int getBinaryEncodeType()
getBinaryEncodeType in interface com.singlestore.jdbc.codec.Codec<OffsetDateTime>Copyright © 2023 SingleStore. All rights reserved.