Class Value

java.lang.Object
org.assertj.db.type.Value
All Implemented Interfaces:
DbElement, WithColumnLetterCase

public class Value extends Object implements DbElement, WithColumnLetterCase
Value in a Row or a Column.

Note : you never instantiate directly this class. You will get an object of this class from a Row or a Column.

Author:
Régis Pouiller
  • Method Details

    • getNullValue

      public static Value getNullValue(String columnName, LetterCase columnLetterCase)
      Returns a NULL value.
      Parameters:
      columnName - The name of the column.
      columnLetterCase - The letter case of the columns.
      Returns:
      A NULL value.
    • getColumnLetterCase

      public LetterCase getColumnLetterCase()
      Returns the letter case of the columns.
      Specified by:
      getColumnLetterCase in interface WithColumnLetterCase
      Returns:
      The letter case of the columns.
    • getColumnName

      public String getColumnName()
      Returns the name of the column.
      Returns:
      The name of the column.
    • getValue

      public Object getValue()
      Returns the value.
      Returns:
      The value.
    • getValueType

      public ValueType getValueType()
      Returns the type of the value.
      Returns:
      The type of the value.
    • getValueTypeRepresentation

      public String getValueTypeRepresentation()
      Returns the representation of the type of the value.
      Returns:
      The representation of the type of the value.
    • isComparisonPossible

      public boolean isComparisonPossible(Object object)
      Returns if any kind of comparison is possible between the value and the object in parameter.
      Parameters:
      object - The potential object for comparison.
      Returns:
      true is comparison is possible.