Class EnumArrayCodec
java.lang.Object
org.dotwebstack.framework.backend.postgres.codec.EnumArrayCodec
- All Implemented Interfaces:
io.r2dbc.postgresql.codec.Codec<String[]>
EnumArray R2DBC codec to represent an enum array as string array.
this implementation is based on io.r2dbc.postgresql.codec.AbstractArrayCodec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleancanEncodeNull(Class<?> type) String[]decode(io.netty.buffer.ByteBuf buffer, int dataType, io.r2dbc.postgresql.message.Format format, Class<? extends String[]> type) io.r2dbc.postgresql.client.EncodedParameterio.r2dbc.postgresql.client.EncodedParameterio.r2dbc.postgresql.client.EncodedParameter
-
Field Details
-
ARRAY_DELIM
public static final char ARRAY_DELIM- See Also:
-
-
Constructor Details
-
EnumArrayCodec
-
-
Method Details
-
canEncode
- Specified by:
canEncodein interfaceio.r2dbc.postgresql.codec.Codec<String[]>
-
canEncodeNull
- Specified by:
canEncodeNullin interfaceio.r2dbc.postgresql.codec.Codec<String[]>
-
decode
public String[] decode(io.netty.buffer.ByteBuf buffer, int dataType, io.r2dbc.postgresql.message.Format format, Class<? extends String[]> type) - Specified by:
decodein interfaceio.r2dbc.postgresql.codec.Codec<String[]>
-
encode
- Specified by:
encodein interfaceio.r2dbc.postgresql.codec.Codec<String[]>
-
encode
- Specified by:
encodein interfaceio.r2dbc.postgresql.codec.Codec<String[]>
-
encodeNull
public io.r2dbc.postgresql.client.EncodedParameter encodeNull()- Specified by:
encodeNullin interfaceio.r2dbc.postgresql.codec.Codec<String[]>
-
canDecode
- Specified by:
canDecodein interfaceio.r2dbc.postgresql.codec.Codec<String[]>
-