Class StructResultSetMetaData

    • Constructor Detail

      • StructResultSetMetaData

        public StructResultSetMetaData​(StructMetaData metaData)
    • Method Detail

      • getTypeName

        public java.lang.String getTypeName()
                                     throws java.sql.SQLException
        Description copied from interface: StructMetaData
        Returns the name of the struct type. The user can set the struct type name in SQL explicitly by using struct <name> (...) clause.
        For example: SELECT struct Foo (a, b) from T will give the struct (a, b) the name foo.
        Specified by:
        getTypeName in interface StructMetaData
        Returns:
        The name of the struct type.
        Throws:
        java.sql.SQLException
      • getColumnCount

        public int getColumnCount()
                           throws java.sql.SQLException
        Specified by:
        getColumnCount in interface java.sql.ResultSetMetaData
        Specified by:
        getColumnCount in interface StructMetaData
        Throws:
        java.sql.SQLException
      • getColumnName

        public java.lang.String getColumnName​(int column)
                                       throws java.sql.SQLException
        Specified by:
        getColumnName in interface java.sql.ResultSetMetaData
        Specified by:
        getColumnName in interface StructMetaData
        Throws:
        java.sql.SQLException
      • getColumnType

        public int getColumnType​(int column)
                          throws java.sql.SQLException
        Specified by:
        getColumnType in interface java.sql.ResultSetMetaData
        Specified by:
        getColumnType in interface StructMetaData
        Throws:
        java.sql.SQLException
      • getArrayMetaData

        public ArrayMetaData getArrayMetaData​(int oneBasedColumn)
                                       throws java.sql.SQLException
        Description copied from interface: StructMetaData
        Get the Metadata for an array type. If the column is not an array type, this will throw an error.
        Specified by:
        getArrayMetaData in interface StructMetaData
        Parameters:
        oneBasedColumn - the position of the column, indexed at 1
        Returns:
        the metadata for the array at column oneBasedColumn
        Throws:
        java.sql.SQLException - if the type of the column is not an array, or if something else goes wrong.
      • getStructMetaData

        public StructMetaData getStructMetaData​(int oneBasedColumn)
                                         throws java.sql.SQLException
        Description copied from interface: StructMetaData
        Get the Metadata for a nested struct type. If the column is not a struct type, this will throw an error.
        Specified by:
        getStructMetaData in interface StructMetaData
        Parameters:
        oneBasedColumn - the position of the column, indexed at 1
        Returns:
        the metadata for the struct at column oneBasedColumn
        Throws:
        java.sql.SQLException - if the type of the column is not a struct, or if something else goes wrong.
      • isNullable

        public int isNullable​(int oneBasedColumn)
                       throws java.sql.SQLException
        Specified by:
        isNullable in interface RelationalResultSetMetaData
        Specified by:
        isNullable in interface java.sql.ResultSetMetaData
        Specified by:
        isNullable in interface StructMetaData
        Throws:
        java.sql.SQLException
      • unwrap

        public <T> T unwrap​(java.lang.Class<T> iface)
                     throws java.sql.SQLException
        Specified by:
        unwrap in interface RelationalResultSetMetaData
        Specified by:
        unwrap in interface java.sql.Wrapper
        Throws:
        java.sql.SQLException