Package org.h2.result

Class ResultColumn


  • public class ResultColumn
    extends java.lang.Object
    A result set column of a remote result.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String alias
      The column alias.
      (package private) java.lang.String columnName
      The column name or null.
      (package private) TypeInfo columnType
      The column type.
      (package private) boolean identity
      True if this is an identity column.
      (package private) int nullable
      True if this column is nullable.
      (package private) java.lang.String schemaName
      The schema name or null.
      (package private) java.lang.String tableName
      The table name or null.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResultColumn​(Transfer in)
      Read an object from the given transfer object.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void writeColumn​(Transfer out, ResultInterface result, int i)
      Write a result column to the given output.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • alias

        final java.lang.String alias
        The column alias.
      • schemaName

        final java.lang.String schemaName
        The schema name or null.
      • tableName

        final java.lang.String tableName
        The table name or null.
      • columnName

        final java.lang.String columnName
        The column name or null.
      • columnType

        final TypeInfo columnType
        The column type.
      • identity

        final boolean identity
        True if this is an identity column.
      • nullable

        final int nullable
        True if this column is nullable.
    • Constructor Detail

      • ResultColumn

        ResultColumn​(Transfer in)
              throws java.io.IOException
        Read an object from the given transfer object.
        Parameters:
        in - the object from where to read the data
        Throws:
        java.io.IOException
    • Method Detail

      • writeColumn

        public static void writeColumn​(Transfer out,
                                       ResultInterface result,
                                       int i)
                                throws java.io.IOException
        Write a result column to the given output.
        Parameters:
        out - the object to where to write the data
        result - the result
        i - the column index
        Throws:
        java.io.IOException - on failure