Class LocalDateCodec

java.lang.Object
org.dotwebstack.framework.backend.postgres.codec.LocalDateCodec
All Implemented Interfaces:
io.r2dbc.postgresql.codec.Codec<LocalDate>

public class LocalDateCodec extends Object implements io.r2dbc.postgresql.codec.Codec<LocalDate>
  • Constructor Details

    • LocalDateCodec

      public LocalDateCodec(Set<Integer> dataTypes)
  • Method Details

    • canDecode

      public boolean canDecode(int dataType, io.r2dbc.postgresql.message.Format format, Class<?> type)
      Specified by:
      canDecode in interface io.r2dbc.postgresql.codec.Codec<LocalDate>
    • canEncode

      public boolean canEncode(Object value)
      Specified by:
      canEncode in interface io.r2dbc.postgresql.codec.Codec<LocalDate>
    • canEncodeNull

      public boolean canEncodeNull(Class<?> type)
      Specified by:
      canEncodeNull in interface io.r2dbc.postgresql.codec.Codec<LocalDate>
    • decode

      public LocalDate decode(io.netty.buffer.ByteBuf buffer, int dataType, io.r2dbc.postgresql.message.Format format, Class<? extends LocalDate> type)
      Specified by:
      decode in interface io.r2dbc.postgresql.codec.Codec<LocalDate>
    • encode

      public io.r2dbc.postgresql.client.EncodedParameter encode(Object value)
      Specified by:
      encode in interface io.r2dbc.postgresql.codec.Codec<LocalDate>
    • encode

      public io.r2dbc.postgresql.client.EncodedParameter encode(Object value, int dataType)
      Specified by:
      encode in interface io.r2dbc.postgresql.codec.Codec<LocalDate>
    • encodeNull

      public io.r2dbc.postgresql.client.EncodedParameter encodeNull()
      Specified by:
      encodeNull in interface io.r2dbc.postgresql.codec.Codec<LocalDate>