public class NaturalIdentifier extends Object implements Criterion
An expression pertaining to an entity’s defined natural identifier
Constructor and Description |
---|
NaturalIdentifier() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getNaturalIdValues()
Get a map of set of the natural identifier values set on this criterion (for composite natural identifiers
this need not be the full set of properties).
|
TypedValue[] |
getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
NaturalIdentifier |
set(String property,
Object value)
Set a natural identifier value for this expression
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
Return typed values for all parameters in the rendered SQL fragment
getTypedValues
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem determining types.public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
Render the SQL fragment
toSqlString
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem during rendering.public Map<String,Object> getNaturalIdValues()
Get a map of set of the natural identifier values set on this criterion (for composite natural identifiers this need not be the full set of properties).
public NaturalIdentifier set(String property, Object value)
Set a natural identifier value for this expression
property
- The specific property namevalue
- The value to usethis
, for method chainingCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.