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 java.lang.Object implements Codec<GeometryCollection>
-
-
Field Summary
Fields Modifier and Type Field Description static GeometryCollectionCodec
INSTANCE
-
Constructor Summary
Constructors Constructor Description GeometryCollectionCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canDecode(ColumnDefinitionPacket column, java.lang.Class<?> type)
boolean
canEncode(java.lang.Object value)
java.lang.String
className()
GeometryCollection
decodeBinary(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, java.util.Calendar cal)
GeometryCollection
decodeText(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, java.util.Calendar cal)
void
encodeBinary(PacketWriter encoder, java.lang.Object value, java.util.Calendar cal, java.lang.Long maxLength)
void
encodeText(PacketWriter encoder, Context context, java.lang.Object value, java.util.Calendar cal, java.lang.Long maxLength)
int
getBinaryEncodeType()
-
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 java.lang.String className()
- Specified by:
className
in interfaceCodec<GeometryCollection>
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, java.lang.Class<?> type)
- Specified by:
canDecode
in interfaceCodec<GeometryCollection>
-
canEncode
public boolean canEncode(java.lang.Object value)
- Specified by:
canEncode
in interfaceCodec<GeometryCollection>
-
decodeText
public GeometryCollection decodeText(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, java.util.Calendar cal) throws java.sql.SQLDataException
- Specified by:
decodeText
in interfaceCodec<GeometryCollection>
- Throws:
java.sql.SQLDataException
-
decodeBinary
public GeometryCollection decodeBinary(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, java.util.Calendar cal) throws java.sql.SQLDataException
- Specified by:
decodeBinary
in interfaceCodec<GeometryCollection>
- Throws:
java.sql.SQLDataException
-
encodeText
public void encodeText(PacketWriter encoder, Context context, java.lang.Object value, java.util.Calendar cal, java.lang.Long maxLength) throws java.io.IOException
- Specified by:
encodeText
in interfaceCodec<GeometryCollection>
- Throws:
java.io.IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, java.lang.Object value, java.util.Calendar cal, java.lang.Long maxLength) throws java.io.IOException
- Specified by:
encodeBinary
in interfaceCodec<GeometryCollection>
- Throws:
java.io.IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeType
in interfaceCodec<GeometryCollection>
-
-