Columns

public final class Columns

The collection of declared columns of the Entity.

Functions

Link copied to clipboard
public ImmutableList<Column> columnList()
Returns all columns of the entity.
Link copied to clipboard
public Optional<Column> find(ColumnName columnName)
Searches for a column with a given name.
Link copied to clipboard
public Column get(ColumnName columnName)
Obtains a column by name.
Link copied to clipboard
public ImmutableMap<ColumnName, InterfaceBasedColumn> interfaceBasedColumns()
Obtains interface-based columns of the entity.
Link copied to clipboard
public ImmutableMap<ColumnName, Column> lifecycleColumns()
Returns a subset of columns corresponding to the lifecycle of the entity.
Link copied to clipboard
public static Columns of(EntityClass<? extends Object> entityClass)
public static Columns of(Class<? extends Entity<? extends Object, ? extends Object>> entityClass)
Gathers columns of the entity class.
Link copied to clipboard
public Map<ColumnName, Object> valuesIn(Entity<? extends Object, ? extends Object> source)
Extracts column values from the entity.