Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.criterion |
A framework for defining restriction criteria and order criteria.
|
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
Modifier and Type | Method and Description |
---|---|
Criteria |
Criteria.setProjection(Projection projection)
Used to specify that the query results will be a projection (scalar in
nature).
|
Modifier and Type | Interface and Description |
---|---|
interface |
EnhancedProjection
An "enhanced" Projection for a
Criteria query. |
Modifier and Type | Class and Description |
---|---|
class |
AggregateProjection
Base class for standard aggregation functions.
|
class |
AliasedProjection
Represents a projection that specifies an alias
|
class |
AvgProjection
An avg() projection
|
class |
CountProjection
A count projection
|
class |
Distinct
A wrappedProjection that is a wrapper around other projections to apply distinction.
|
class |
IdentifierProjection
A property value, or grouped property value
|
class |
ProjectionList
A projection that wraps other projections to allow selecting multiple values.
|
class |
Property
A factory for property-specific criterion and projection instances
|
class |
PropertyProjection
A property value, or grouped property value
|
class |
RowCountProjection
A row count
|
class |
SimpleProjection
A single-column projection that may be aliased
|
class |
SQLProjection
A SQL fragment.
|
Modifier and Type | Method and Description |
---|---|
static Projection |
Projections.alias(Projection projection,
String alias)
Assign an alias to a projection, by wrapping it
|
Projection |
SimpleProjection.as(String alias)
Create an aliased form of this projection
|
static Projection |
Projections.distinct(Projection projection)
Create a distinct projection from a projection.
|
Projection |
ProjectionList.getProjection(int i)
Access a wrapped projection by index
|
static Projection |
Projections.rowCount()
The query row count, ie.
|
static Projection |
Projections.sqlGroupProjection(String sql,
String groupBy,
String[] columnAliases,
Type[] types)
A grouping SQL projection, specifying both select clause and group by clause fragments
|
static Projection |
Projections.sqlProjection(String sql,
String[] columnAliases,
Type[] types)
A SQL projection, a typed select clause fragment
|
Modifier and Type | Method and Description |
---|---|
ProjectionList |
ProjectionList.add(Projection projection)
Add a projection to this list of projections
|
ProjectionList |
ProjectionList.add(Projection projection,
String alias)
Adds a projection to this list of projections after wrapping it with an alias
|
static Projection |
Projections.alias(Projection projection,
String alias)
Assign an alias to a projection, by wrapping it
|
static Projection |
Projections.distinct(Projection projection)
Create a distinct projection from a projection.
|
DetachedCriteria |
DetachedCriteria.setProjection(Projection projection)
Set the projection to use.
|
Constructor and Description |
---|
AliasedProjection(Projection projection,
String alias) |
Distinct(Projection wrappedProjection)
Constructs a Distinct
|
Modifier and Type | Method and Description |
---|---|
Projection |
CriteriaImpl.getProjection() |
Modifier and Type | Method and Description |
---|---|
Criteria |
CriteriaImpl.setProjection(Projection projection) |
Criteria |
CriteriaImpl.Subcriteria.setProjection(Projection projection) |
Copyright © 2017 JBoss by Red Hat. All rights reserved.