Class ColumnInfo


  • public class ColumnInfo
    extends java.lang.Object
    Describes a single column.
    Since:
    13.0
    • Constructor Summary

      Constructors 
      Constructor Description
      ColumnInfo​(java.lang.String name, int dataType)
      Create a new instance.
      ColumnInfo​(java.lang.String name, int dataType, int colType, int sqlType, int scale)
      Constructor for SP parameters
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnType()
      A value of DatabaseMetaData.procedureColumnIn, DatabaseMetaData.procedureColumnInOut, DatabaseMetaData.procedureColumnOut, DatabaseMetaData.procedureColumnReturn or DatabaseMetaData.procedureColumnResult.
      int getDataType()
      The data type of this column.
      java.lang.String getName()
      The name of this column.
      int getScale()
      The SQL scale of the column.
      int getSqlType()
      The SQL type of the column.
      • Methods inherited from class java.lang.Object

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

      • ColumnInfo

        public ColumnInfo​(@Nonnull
                          java.lang.String name,
                          int dataType)
        Create a new instance.
        Parameters:
        name - the column name
        dataType - the data type. One of #Field constants.
        Since:
        13.0
      • ColumnInfo

        public ColumnInfo​(@Nonnull
                          java.lang.String name,
                          int dataType,
                          int colType,
                          int sqlType,
                          int scale)
        Constructor for SP parameters
        Parameters:
        name - the column name
        dataType - the data type. One of #Field constants.
        colType - a value of DatabaseMetaData.procedureColumn*
        sqlType - The SQL type of the column. This is a constant from java.sql.Types.
        scale - the SQL scale of the column
        Since:
        13.0
    • Method Detail

      • getName

        @Nonnull
        public java.lang.String getName()
        The name of this column. Should be never be null.
        Returns:
        the name
        Since:
        13.0
      • getDataType

        public int getDataType()
        The data type of this column. One of #Field constants.
        Returns:
        the dataType
        Since:
        13.0
      • getColumnType

        public int getColumnType()
        A value of DatabaseMetaData.procedureColumnIn, DatabaseMetaData.procedureColumnInOut, DatabaseMetaData.procedureColumnOut, DatabaseMetaData.procedureColumnReturn or DatabaseMetaData.procedureColumnResult.
        Returns:
        the colType
        Since:
        13.0
      • getSqlType

        public int getSqlType()
        The SQL type of the column. This is a constant from java.sql.Types. This value need only be set for SP parameters.
        Returns:
        the sqlType
        Since:
        13.0
      • getScale

        public int getScale()
        The SQL scale of the column. This value need only be set for SP parameters.
        Returns:
        the scale
        Since:
        13.0