Class ResultColumn

    • Field Detail

      • val

        protected final Object val
        The value of the column.
      • name

        protected final String name
        The name of the column.
    • Constructor Detail

      • ResultColumn

        public ResultColumn​(String name,
                            Object val)
        Creates a new instance of ResultColumn.
        Parameters:
        name - The column name.
        val - The column value.
    • Method Detail

      • processObject

        protected Object processObject​(Object o)
        Processes an object. This method is to be overwritten by implementations that need to do some processing before the ResultSet closes.
        Parameters:
        o - The object in need of some kind of processing before being set.
        Returns:
        The processed object.
        See Also:
        DB2ResultColumn
      • isNull

        public boolean isNull()
        Checks if the value is null.
        Returns:
        True if the value is null, false otherwise.
      • getName

        public String getName()
        Returns:
        The name.
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        This value in the form of a String.
      • toInt

        public Integer toInt()
        Returns:
        This value in the form of an Integer.
      • toDouble

        public Double toDouble()
        Returns:
        This value in the form of a Double.
      • toFloat

        public Float toFloat()
        Returns:
        This value in the form of a Float.
      • toLong

        public Long toLong()
        Returns:
        This value in the form of a Long.
      • toObject

        public Object toObject()
        Returns:
        The object value.
      • toBoolean

        public Boolean toBoolean()
        Returns:
        This value in the form of a Boolean.
      • toBlob

        public <T> T toBlob()
                     throws DatabaseEngineRuntimeException
        Converts this result (in the form of blob) to the specified object type.
        Type Parameters:
        T - The type to convert.
        Returns:
        The instance that was in the form of blob.
        Throws:
        DatabaseEngineRuntimeException - If the value is not a blob or if something goes wrong when reading the object.