public class

IdentifierProjection

extends SimpleProjection
java.lang.Object
   ↳ org.hibernate.criterion.SimpleProjection
     ↳ org.hibernate.criterion.IdentifierProjection

Class Overview

A property value, or grouped property value

Summary

Protected Constructors
IdentifierProjection(boolean grouped)
IdentifierProjection()
Public Methods
Type[] getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
boolean isGrouped()
Is this projection fragment (SELECT clause) also part of the GROUP BY
String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
Render the SQL fragment to be used in the GROUP BY clause
String toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery)
String toString()
[Expand]
Inherited Methods
From class org.hibernate.criterion.SimpleProjection
From class java.lang.Object
From interface org.hibernate.criterion.EnhancedProjection
From interface org.hibernate.criterion.Projection

Protected Constructors

protected IdentifierProjection (boolean grouped)

protected IdentifierProjection ()

Public Methods

public Type[] getTypes (Criteria criteria, CriteriaQuery criteriaQuery)

public boolean isGrouped ()

Is this projection fragment (SELECT clause) also part of the GROUP BY

Returns
  • True if the projection is also part of the GROUP BY; false otherwise.

public String toGroupSqlString (Criteria criteria, CriteriaQuery criteriaQuery)

Render the SQL fragment to be used in the GROUP BY clause

Parameters
criteria The local criteria to which this project is attached (for resolution).
criteriaQuery The overall criteria query instance.
Returns
  • The SQL fragment to plug into the GROUP BY

public String toSqlString (Criteria criteria, int position, CriteriaQuery criteriaQuery)

public String toString ()