public class

PropertyProjection

extends SimpleProjection
java.lang.Object
   ↳ org.hibernate.criterion.SimpleProjection
     ↳ org.hibernate.criterion.PropertyProjection
Known Direct Subclasses

Class Overview

A property value, or grouped property value

Summary

Protected Constructors
PropertyProjection(String prop, boolean grouped)
PropertyProjection(String prop)
Public Methods
String getPropertyName()
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 PropertyProjection (String prop, boolean grouped)

protected PropertyProjection (String prop)

Public Methods

public String getPropertyName ()

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 ()