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