Package org.h2.value

Class ValueVarbinary

All Implemented Interfaces:
HasSQL, Typed

public final class ValueVarbinary extends ValueBytesBase
Implementation of the BINARY VARYING data type.
  • Field Details

    • EMPTY

      public static final ValueVarbinary EMPTY
      Empty value.
    • type

      private TypeInfo type
      Associated TypeInfo.
  • Constructor Details

    • ValueVarbinary

      protected ValueVarbinary(byte[] value)
  • Method Details

    • get

      public static ValueVarbinary get(byte[] b)
      Get or create a VARBINARY value for the given byte array. Clone the data.
      Parameters:
      b - the byte array
      Returns:
      the value
    • getNoCopy

      public static ValueVarbinary getNoCopy(byte[] b)
      Get or create a VARBINARY value for the given byte array. Do not clone the date.
      Parameters:
      b - the byte array
      Returns:
      the value
    • getType

      public TypeInfo getType()
      Description copied from interface: Typed
      Returns the data type.
      Specified by:
      getType in interface Typed
      Specified by:
      getType in class Value
      Returns:
      the data type
    • getValueType

      public int getValueType()
      Description copied from class: Value
      Get the value type.
      Specified by:
      getValueType in class Value
      Returns:
      the value type
    • getString

      public String getString()
      Description copied from class: Value
      Get the value as a string.
      Specified by:
      getString in class Value
      Returns:
      the string