org.hibernate.criterion

Class NaturalIdentifier

Implemented Interfaces:
Criterion, Serializable

public class NaturalIdentifier
extends java.lang.Object
implements Criterion

Author:
Gavin King

Method Summary

TypedValue[]
getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
NaturalIdentifier
set(String property, Object value)
String
toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
Render the SQL fragment

Method Details

getTypedValues

public TypedValue[] getTypedValues(Criteria criteria,
                                   CriteriaQuery criteriaQuery)
            throws HibernateException
Return typed values for all parameters in the rendered SQL fragment
Specified by:
getTypedValues in interface Criterion
Parameters:
criteria - The local criteria
criteriaQuery - The overal criteria query
Returns:
The types values (for binding)
Throws:
HibernateException - Problem determining types.

set

public NaturalIdentifier set(String property,
                             Object value)

toSqlString

public String toSqlString(Criteria criteria,
                          CriteriaQuery criteriaQuery)
            throws HibernateException
Render the SQL fragment
Specified by:
toSqlString in interface Criterion
Parameters:
criteria - The local criteria
criteriaQuery - The overal criteria query
Returns:
The generated SQL fragment
Throws:
HibernateException - Problem during rendering.