Interface Entity.Key.Builder

Enclosing interface:
Entity.Key

public static interface Entity.Key.Builder
A builder for Entity.Key instances. Note that the resulting key is assumed to be a primary key if any of the values is associated with a primary key column.
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds the key instance
    with(Column<T> column, T value)
    Adds the given column value to this builder
  • Method Details

    • with

      <T> Entity.Key.Builder with(Column<T> column, T value)
      Adds the given column value to this builder
      Type Parameters:
      T - the value type
      Parameters:
      column - the column
      value - the value
      Returns:
      this builder instance
      Throws:
      IllegalArgumentException - in case this column is not part of the entity
    • build

      Entity.Key build()
      Builds the key instance
      Returns:
      a new Key instance