Class TableFieldValue

    • Method Detail

      • fromString

        public static TableFieldValue fromString​(String value,
                                                 int sqlType)
        Constructs a TableFieldValue instance from the specified value represented as a String object and according to the specified SQL type (a value among Types). If the specified value doesn't match the SQL type of this field value, then an IllegalArgumentException exception is thrown.
        Parameters:
        value - the String representation of a value. Null value shouldn't be null but the String "null".
        sqlType - the SQL type as defined in Types.
        Returns:
        a TableFieldValue instance.
      • isText

        public boolean isText()
        Is this value a text?
        Returns:
        true if the type of this value is a text, false otherwise.
      • isEmpty

        public boolean isEmpty()
        Is this value an empty text?
        Returns:
        true if this value is a text and it is empty. False otherwise.
      • update

        public void update​(String value)
        Updates this value with the textual representation of the new value. If the specified value doesn't match the SQL type of this field value, then an IllegalArgumentException exception is thrown.
        Parameters:
        value - a String representation of the value. Null value shouldn't be null but the String "null".
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object