Package org.mariadb.jdbc.codec.list
Class GeometryCollectionCodec
- java.lang.Object
-
- org.mariadb.jdbc.codec.list.GeometryCollectionCodec
-
- All Implemented Interfaces:
Codec<GeometryCollection>
public class GeometryCollectionCodec extends Object implements Codec<GeometryCollection>
-
-
Field Summary
Fields Modifier and Type Field Description static GeometryCollectionCodecINSTANCE
-
Constructor Summary
Constructors Constructor Description GeometryCollectionCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(ColumnDefinitionPacket column, Class<?> type)booleancanEncode(Object value)StringclassName()GeometryCollectiondecodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)GeometryCollectiondecodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)voidencodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength)voidencodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLength)intgetBinaryEncodeType()-
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 Detail
-
INSTANCE
public static final GeometryCollectionCodec INSTANCE
-
-
Method Detail
-
className
public String className()
- Specified by:
classNamein interfaceCodec<GeometryCollection>
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
- Specified by:
canDecodein interfaceCodec<GeometryCollection>
-
canEncode
public boolean canEncode(Object value)
- Specified by:
canEncodein interfaceCodec<GeometryCollection>
-
decodeText
public GeometryCollection decodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeTextin interfaceCodec<GeometryCollection>- Throws:
SQLDataException
-
decodeBinary
public GeometryCollection decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeBinaryin interfaceCodec<GeometryCollection>- Throws:
SQLDataException
-
encodeText
public void encodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeTextin interfaceCodec<GeometryCollection>- Throws:
IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeBinaryin interfaceCodec<GeometryCollection>- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<GeometryCollection>
-
-