Class PGBuffersArray

  • All Implemented Interfaces:
    java.sql.Array

    public class PGBuffersArray
    extends PGArray
    • 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
        Specified by:
        getArray in class PGArray
        Throws:
        java.sql.SQLException
      • getResultSet

        protected java.sql.ResultSet getResultSet​(Context context,
                                                  long index,
                                                  int count)
                                           throws java.sql.SQLException
        Specified by:
        getResultSet in class PGArray
        Throws:
        java.sql.SQLException
      • free

        public void free()