Package org.mariadb.jdbc.codec.list
Class GeometryCollectionCodec
java.lang.Object
org.mariadb.jdbc.codec.list.GeometryCollectionCodec
- All Implemented Interfaces:
Codec<GeometryCollection>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecode
(ColumnDefinitionPacket column, Class<?> type) boolean
decodeBinary
(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) decodeText
(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) void
encodeBinary
(PacketWriter encoder, Object value, Calendar cal, Long maxLength) void
encodeText
(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLength) int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mariadb.jdbc.plugin.Codec
canEncodeLongData, encodeData, encodeLongData
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
GeometryCollectionCodec
public GeometryCollectionCodec()
-
-
Method Details
-
className
- Specified by:
className
in interfaceCodec<GeometryCollection>
-
canDecode
- Specified by:
canDecode
in interfaceCodec<GeometryCollection>
-
canEncode
- Specified by:
canEncode
in interfaceCodec<GeometryCollection>
-
decodeText
public GeometryCollection decodeText(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException - Specified by:
decodeText
in interfaceCodec<GeometryCollection>
- Throws:
SQLDataException
-
decodeBinary
public GeometryCollection decodeBinary(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException - Specified by:
decodeBinary
in interfaceCodec<GeometryCollection>
- Throws:
SQLDataException
-
encodeText
public void encodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLength) throws IOException - Specified by:
encodeText
in interfaceCodec<GeometryCollection>
- Throws:
IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength) throws IOException - Specified by:
encodeBinary
in interfaceCodec<GeometryCollection>
- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()- Specified by:
getBinaryEncodeType
in interfaceCodec<GeometryCollection>
-