primaryKey
Projection function that selects the primary key.
- Returns:
- a projection function that selects the primary key.
StatementFactorycolumn projection to be selected for a query based on a given
EntityProjection. A projection function can be composed into a higher-order function using
otherwise(ProjectionFunction) to form a chain of functions that are tried in sequence until one produces a
non-empty Columns object.computeProjection(EntityProjection<?,?> projection,
MappingContext<? extends CassandraPersistentEntity<?>, ? extends CassandraPersistentProperty> context) Columns to be selected for a given EntityProjection.empty()Columns.empty().otherwise(StatementFactory.ProjectionFunction fallback) fallback function that is invoked when this function returns an
empty Columns object.Columns to be selected for a given EntityProjection. If the function cannot compute
columns it should return an empty Columns object.fallback function that is invoked when this function returns an
empty Columns object.fallback - the fallback function.Columns.empty().Columns.empty().