Type Parameters:
T - the column value type
All Superinterfaces:
Attribute<T>, ColumnCondition.Factory<T>

public interface Column<T> extends Attribute<T>, ColumnCondition.Factory<T>
An Attribute representing a table column.
  • Method Details

    • define

      Specified by:
      define in interface Attribute<T>
      Returns:
      a Column.ColumnDefiner for this column
    • column

      static <T> Column<T> column(EntityType entityType, String name, TypeReference<T> typeReference)
      Creates a new Column, associated with the given entityType.
      Type Parameters:
      T - the column type
      Parameters:
      entityType - the entityType owning this column
      name - the column name
      typeReference - the TypeReference representing the column value type
      Returns:
      a new Column
    • column

      static <T> Column<T> column(EntityType entityType, String name, Class<T> valueClass)
      Creates a new Column, associated with the given entityType.
      Type Parameters:
      T - the column type
      Parameters:
      entityType - the entityType owning this column
      name - the column name
      valueClass - the class representing the column value type
      Returns:
      a new Column