Class RefCursors.BinDecoder
- java.lang.Object
-
- com.impossibl.postgres.system.procs.RefCursors.BinDecoder
-
- All Implemented Interfaces:
Type.Codec.Decoder<io.netty.buffer.ByteBuf>
- Enclosing class:
- RefCursors
public static class RefCursors.BinDecoder extends Object
-
-
Constructor Summary
Constructors Constructor Description BinDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
convertOutput(Context context, N decoded, Class<?> targetClass, Object targetContext)
Object
decode(Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext)
protected ResultSet
decodeNativeValue(Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext)
protected Object
decodeValue(Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext)
protected void
enableRespectMaxLength()
Class<ResultSet>
getDefaultClass()
protected boolean
shouldRespectMaxLength()
-
-
-
Method Detail
-
getDefaultClass
public Class<ResultSet> getDefaultClass()
- Specified by:
getDefaultClass
in interfaceType.Codec.Decoder<io.netty.buffer.ByteBuf>
-
decodeNativeValue
protected ResultSet decodeNativeValue(Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext) throws IOException
- Throws:
IOException
-
convertOutput
protected Object convertOutput(Context context, N decoded, Class<?> targetClass, Object targetContext) throws IOException
- Throws:
IOException
-
decodeValue
protected Object decodeValue(Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext) throws IOException
- Throws:
IOException
-
shouldRespectMaxLength
protected boolean shouldRespectMaxLength()
-
enableRespectMaxLength
protected void enableRespectMaxLength()
-
decode
public Object decode(Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext) throws IOException
- Specified by:
decode
in interfaceType.Codec.Decoder<io.netty.buffer.ByteBuf>
- Throws:
IOException
-
-