EntityRecordWithColumns

public final class EntityRecordWithColumns implements WithLifecycle

A value of EntityRecord associated with the values of its columns.

Functions

Link copied to clipboard
public ImmutableSet<ColumnName> columnNames()
Obtains the names of storage fields in the record.
Link copied to clipboard
public Object columnValue(ColumnName columnName)
public R columnValue<R>(ColumnName columnName, ColumnMapping<R> columnMapping)
Obtains the value of the storage field by the specified column name.
Link copied to clipboard
public static EntityRecordWithColumns create(EntityRecord record, Entity<? extends Object, ? extends Object> entity, RecordStorage<? extends Object> recordStorage)
Creates a new record extracting the column values from the passed entity.
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public LifecycleFlags getLifecycleFlags()
Obtains current lifecycle flags.
Link copied to clipboard
public boolean hasColumn(ColumnName name)
Determines if there is a column with the specified name among the storage fields.
Link copied to clipboard
public boolean hasColumns()
Determines if there are any columns associated with this record.
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean isActive()
Verifies if any of the lifecycle attributes is set.
Link copied to clipboard
public boolean isArchived()
Shows if current instance is marked as archived or not.
Link copied to clipboard
public boolean isDeleted()
Shows if current instance is marked as deleted or not.
Link copied to clipboard
public static EntityRecordWithColumns of(EntityRecord record)
Wraps a passed entity record.
public static EntityRecordWithColumns of(EntityRecord record, Map<ColumnName, Object> storageFields)
Creates a new instance from the passed record and storage fields.
Link copied to clipboard
public EntityRecord record()
Returns the enclosed entity record.

Inherited functions

Link copied to clipboard
public LifecycleFlags lifecycleFlags()
Obtains current lifecycle flags.