Package com.impossibl.postgres.jdbc
Class PGBuffersArray
- java.lang.Object
-
- com.impossibl.postgres.jdbc.PGArray
-
- com.impossibl.postgres.jdbc.PGBuffersArray
-
- All Implemented Interfaces:
java.sql.Array
public class PGBuffersArray extends PGArray
-
-
Constructor Summary
Constructors Constructor Description PGBuffersArray(Context context, ArrayType type, FieldFormat elementFormat, io.netty.buffer.ByteBuf[] elementBuffers, int[] dimensions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PGBuffersArrayencode(Context context, ArrayType type, java.lang.Object array)static voidencode(Context context, Type componentType, FieldFormat format, java.lang.Object value, java.util.List<io.netty.buffer.ByteBuf> elementBuffers)voidfree()protected java.lang.ObjectgetArray(Context context, java.lang.Class<?> targetComponentType, long index, int count)intgetLength()protected java.sql.ResultSetgetResultSet(Context context, long index, int count)-
Methods inherited from class com.impossibl.postgres.jdbc.PGArray
checkFreed, getArray, getArray, getArray, getArray, getArray, getBaseType, getBaseTypeName, getResultSet, getResultSet, getResultSet, getResultSet, getType
-
-
-
-
Constructor Detail
-
PGBuffersArray
public PGBuffersArray(Context context, ArrayType type, FieldFormat elementFormat, io.netty.buffer.ByteBuf[] elementBuffers, int[] dimensions)
-
-
Method Detail
-
encode
public static PGBuffersArray encode(Context context, ArrayType type, java.lang.Object array) throws java.io.IOException
- Throws:
java.io.IOException
-
encode
public static void encode(Context context, Type componentType, FieldFormat format, java.lang.Object value, java.util.List<io.netty.buffer.ByteBuf> elementBuffers) throws java.io.IOException
- Throws:
java.io.IOException
-
getArray
protected java.lang.Object getArray(Context context, java.lang.Class<?> targetComponentType, long index, int count) throws java.sql.SQLException
-
getResultSet
protected java.sql.ResultSet getResultSet(Context context, long index, int count) throws java.sql.SQLException
- Specified by:
getResultSetin classPGArray- Throws:
java.sql.SQLException
-
free
public void free()
-
-