Class ArrayEncoding.RecursiveArrayEncoder

    • Constructor Detail

      • RecursiveArrayEncoder

        RecursiveArrayEncoder​(ArrayEncoding.AbstractArrayEncoder support,
                              int dimensions)
        Parameters:
        support - The instance providing support for the base array type.
    • Method Detail

      • getDefaultArrayTypeOid

        public int getDefaultArrayTypeOid()
        The default array type oid supported by this instance.
        Specified by:
        getDefaultArrayTypeOid in interface ArrayEncoding.ArrayEncoder
        Returns:
        The default array type oid supported by this instance.
      • toArrayString

        public java.lang.String toArrayString​(char delim,
                                              java.lang.Object array)
        Creates String representation of the array.
        Specified by:
        toArrayString in interface ArrayEncoding.ArrayEncoder
        Parameters:
        delim - The character to use to delimit between elements.
        array - The array to represent as a String.
        Returns:
        String representation of the array.
      • arrayString

        private void arrayString​(java.lang.StringBuilder sb,
                                 java.lang.Object array,
                                 char delim,
                                 int depth)
      • hasNulls

        private boolean hasNulls​(java.lang.Object array,
                                 int depth)
      • writeArray

        private void writeArray​(BaseConnection connection,
                                byte[] buffer,
                                java.io.ByteArrayOutputStream baos,
                                java.lang.Object array,
                                int depth,
                                boolean first)
                         throws java.io.IOException,
                                java.sql.SQLException
        Throws:
        java.io.IOException
        java.sql.SQLException