public class NaturalIdentifier extends Object implements Criterion
Session.byNaturalId(Class)
,
Session.byNaturalId(String)
,
Session.bySimpleNaturalId(Class)
,
Session.bySimpleNaturalId(String)
,
Serialized FormConstructor and Description |
---|
NaturalIdentifier() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getNaturalIdValues() |
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
|
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
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
toSqlString
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem during rendering.public NaturalIdentifier set(String property, Object value)
Copyright © 2018 JBoss by Red Hat. All rights reserved.