Class RowMultiSetImpl

    • Field Detail

      • _columnNames

        private java.lang.String[] _columnNames
        This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method.
    • Constructor Detail

      • RowMultiSetImpl

        public RowMultiSetImpl()

        0-arg constructor for Formatable machinery.

      • RowMultiSetImpl

        public RowMultiSetImpl​(java.lang.String[] columnNames,
                               TypeDescriptor[] types)

        Construct from column names and their types.

    • Method Detail

      • getColumnNames

        public java.lang.String[] getColumnNames()
        Get the names of the columns in this row set
      • getTypes

        public TypeDescriptor[] getTypes()
        Get the types of the columns in this row set
      • setTypes

        public void setTypes​(TypeDescriptor[] types)
        Set the types of the columns in this row set
      • getSQLTypeName

        public java.lang.String getSQLTypeName()

        Get the SQL name of this multi set. This is the name suitable for replaying the DDL to create a Table Function.

        Overrides:
        getSQLTypeName in class BaseTypeIdImpl
        Returns:
        A String containing the SQL name of this type.
      • getJDBCTypeId

        public int getJDBCTypeId()

        Get the corresponding JDBC type.

        Overrides:
        getJDBCTypeId in class BaseTypeIdImpl
        Returns:
        a jdbc type, e.g. java.sql.Types.DECIMAL
        See Also:
        Types
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException

        Read ourself from a formatable stream.

        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class BaseTypeIdImpl
        Parameters:
        in - read this.
        Throws:
        java.io.IOException - thrown on error
        java.lang.ClassNotFoundException - thrown on error
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException

        Write ourself to a formatable stream.

        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class BaseTypeIdImpl
        Parameters:
        out - write bytes here.
        Throws:
        java.io.IOException - thrown on error