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()
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
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 Map<String,Object> getNaturalIdValues()
public NaturalIdentifier set(String property, Object value)
property
- The specific property namevalue
- The value to usethis
, for method chainingCopyright © 2017 JBoss by Red Hat. All rights reserved.