Restrictions factory methods for generating Criterion instances
org.hibernate.Criteria
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Projection | Returns: The aliased projectionThe projection to be aliased projection, String The alias to apply alias)Assign an alias to a projection, by wrapping it |
| public static AggregateProjection | |
| public static CountProjection | |
| public static CountProjection | Returns: The count projectionThe name of the property to count over propertyName)A distinct property value count projection |
| public static Projection | Returns: The distinct projectionThe project to treat distinctly projection)Create a distinct projection from a projection. |
| public static ForeingKeyProjection | |
| public static PropertyProjection | Returns: The grouped projectionThe name of the property to group propertyName)A grouping property value projection |
| public static IdentifierProjection | |
| public static AggregateProjection | |
| public static AggregateProjection | |
| public static ProjectionList | |
| public static PropertyProjection | |
| public static Projection | |
| public static Projection | Returns: The SQL projectionThe SQL SELECT fragment sql, String The SQL GROUP BY fragment groupBy, String[] The column aliases columnAliases, Type[] The resulting types types)A grouping SQL projection, specifying both select clause and group by clause fragments |
| public static Projection | Returns: The SQL projectionThe SQL fragment sql, String[] The column aliases columnAliases, Type[] The resulting types types)A SQL projection, a typed select clause fragment |
| public static AggregateProjection |
| Projections | back to summary |
|---|---|
| private Projections() | |
| alias | back to summary |
|---|---|
| public static Projection alias(Projection projection, String alias) Assign an alias to a projection, by wrapping it
| |
| avg | back to summary |
|---|---|
| public static AggregateProjection avg(String propertyName) A property average value projection
| |
| count | back to summary |
|---|---|
| public static CountProjection count(String propertyName) A property value count projection
| |
| countDistinct | back to summary |
|---|---|
| public static CountProjection countDistinct(String propertyName) A distinct property value count projection
| |
| distinct | back to summary |
|---|---|
| public static Projection distinct(Projection projection) Create a distinct projection from a projection.
| |
| fk | back to summary |
|---|---|
| public static ForeingKeyProjection fk(String associationPropertyName) | |
| groupProperty | back to summary |
|---|---|
| public static PropertyProjection groupProperty(String propertyName) A grouping property value projection
| |
| id | back to summary |
|---|---|
| public static IdentifierProjection id() An identifier value projection.
| |
| max | back to summary |
|---|---|
| public static AggregateProjection max(String propertyName) A property maximum value projection
| |
| min | back to summary |
|---|---|
| public static AggregateProjection min(String propertyName) A property minimum value projection
| |
| projectionList | back to summary |
|---|---|
| public static ProjectionList projectionList() Create a new projection list.
| |
| property | back to summary |
|---|---|
| public static PropertyProjection property(String propertyName) A property value projection
| |
| rowCount | back to summary |
|---|---|
| public static Projection rowCount() The query row count, ie. count(*)
| |
| sqlGroupProjection | back to summary |
|---|---|
| public static Projection sqlGroupProjection(String sql, String groupBy, String[] columnAliases, Type[] types) A grouping SQL projection, specifying both select clause and group by clause fragments
| |
| sqlProjection | back to summary |
|---|---|
| public static Projection sqlProjection(String sql, String[] columnAliases, Type[] types) A SQL projection, a typed select clause fragment
| |
| sum | back to summary |
|---|---|
| public static AggregateProjection sum(String propertyName) A property value sum projection
| |