Criteria query.
Built-in projection types are provided by the Projections factory class. This interface might be
implemented by application classes that define custom projections.
Projections, Criteria
| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public String[] | Returns: The columns aliases.Just as in position)toSqlString, represents the number of columns rendered
prior to this projection.Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
SELECT clause ( |
| public String[] | Returns: The columns aliases pertaining to a particular criteria-level alias; expected to return null if this projection does not understand this alias.The criteria-level alias alias, int Just as in position)toSqlString, represents the number of columns rendered
prior to this projection.Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
SELECT clause ( |
| public Type[] | Returns: The return types.The local criteria to which this project is attached (for resolution). criteria, CriteriaQuery The overall criteria query instance. criteriaQuery)Types returned by the rendered SQL |
| public Type[] | Returns: The return types; expected to return null if this projection does not understand this alias.The criteria-level alias for which to find types. alias, Criteria The local criteria to which this project is attached (for resolution). criteria, CriteriaQuery The overall criteria query instance. criteriaQuery)Get the return types for a particular user-visible alias. |
| public boolean | Returns: True if the projection is also part of the GROUP BY; false otherwise.Is this projection fragment (SELECT clause) also part of the GROUP BY |
| public String | Returns: The SQL fragment to plug into the GROUP BYThe local criteria to which this project is attached (for resolution). criteria, CriteriaQuery The overall criteria query instance. criteriaQuery)Render the SQL fragment to be used in the GROUP BY clause |
| public String | Returns: The SQL fragment to plug into the SELECTThe local criteria to which this project is attached (for resolution). criteria, int The number of columns rendered in the SELECT clause before this projection. Generally
speaking this is useful to ensure uniqueness of the individual columns aliases. position, CriteriaQuery The overall criteria query instance. criteriaQuery)Render the SQL fragment to be used in the SELECT clause. |
| getAliases | back to summary |
|---|---|
| public String[] getAliases() Get the criteria-level aliases for this projection (ie. the ones that will be passed to the
| |
| getColumnAliases | back to summary |
|---|---|
| public String[] getColumnAliases(int position) Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
SELECT clause (
| |
| getColumnAliases | back to summary |
|---|---|
| public String[] getColumnAliases(String alias, int position) Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
SELECT clause (
| |
| getTypes | back to summary |
|---|---|
| public Type[] getTypes(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException Types returned by the rendered SQL
| |
| getTypes | back to summary |
|---|---|
| public Type[] getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException Get the return types for a particular user-visible alias.
Differs from
| |
| isGrouped | back to summary |
|---|---|
| public boolean isGrouped() Is this projection fragment (SELECT clause) also part of the GROUP BY
| |
| toGroupSqlString | back to summary |
|---|---|
| public String toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException Render the SQL fragment to be used in the GROUP BY clause
| |
| toSqlString | back to summary |
|---|---|
| public String toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery) throws HibernateException Render the SQL fragment to be used in the SELECT clause.
| |