The criterion package may be used by applications as a framework for building new kinds of Projection. However, it is intended that most applications will simply use the built-in projection types via the static factory methods of this class.

The factory methods that take an alias allow the projected value to be referred to by criterion and order instances.

The following tables list the members exposed by the Projections type.

Public Methods

  NameDescription
static memberAlias
Assign an alias to a projection, by wrapping it

static memberAvg
A property average value

static memberCount
A property value count

static memberCountDistinct
A distinct property value count

static memberDistinct
Create a distinct projection from a projection

static memberGroupProperty
A grouping property value

static memberId
A projected identifier value

static memberMax
A property maximum value

static memberMin
A property minimum value

static memberProjectionList
Create a new projection list

static memberProperty
A projected property value

static memberRowCount
The query row count, ie. count(*)

static memberSqlGroupProjection
A grouping SQL projection, specifying both select clause and group by clause fragments

static memberSqlProjection
A SQL projection, a typed select clause fragment

static memberSum
A property value sum