Module org.jooq
Package org.jooq

Interface Record2<T1,​T2>

All Superinterfaces:
Attachable, Comparable<Record>, Fields, Formattable, Record, Serializable

public interface Record2<T1,​T2> extends Record
A model type for a records with degree 2
Author:
Lukas Eder
See Also:
Row2
  • Method Details

    • fieldsRow

      @NotNull @NotNull Row2<T1,​T2> fieldsRow()
      Get this record's fields as a Row2.
      Specified by:
      fieldsRow in interface Fields
    • valuesRow

      @NotNull @NotNull Row2<T1,​T2> valuesRow()
      Get this record's values as a Row2.
      Specified by:
      valuesRow in interface Record
    • field1

      @NotNull @NotNull Field<T1> field1()
      Get the first field.
    • field2

      @NotNull @NotNull Field<T2> field2()
      Get the second field.
    • value1

      T1 value1()
      Get the first value.
    • value2

      T2 value2()
      Get the second value.
    • value1

      @NotNull @NotNull Record2<T1,​T2> value1(T1 value)
      Set the first value.
    • value2

      @NotNull @NotNull Record2<T1,​T2> value2(T2 value)
      Set the second value.
    • values

      @NotNull @NotNull Record2<T1,​T2> values(T1 t1, T2 t2)
      Set all values.
    • with

      @NotNull <T> @NotNull Record2<T1,​T2> with(Field<T> field, T value)
      Set a value into this record.

      Like Record.set(Field, Object) but returning this for fluent setting of multiple values.

      Specified by:
      with in interface Record
    • with

      @NotNull <T,​ U> @NotNull Record2<T1,​T2> with(Field<T> field, U value, Converter<? extends T,​? super U> converter)
      Set a value into this record.

      Like Record.set(Field, Object, Converter) but returning this for fluent setting of multiple values.

      Specified by:
      with in interface Record
    • component1

      T1 component1()
      Get the first value.

      This is the same as value1().

    • component2

      T2 component2()
      Get the second value.

      This is the same as value2().