Top Fields Methods
org.hibernate.persister.entity

public Interface UniqueKeyLoadable

extends Loadable
Known Direct Implementers
org.hibernate.persister.entity.AbstractEntityPersister
Imports
org.hibernate.HibernateException, org.hibernate.engine.SessionImplementor

Author
Gavin King

Field Summary

Inherited from org.hibernate.persister.entity.Loadable:
ROWID_ALIAS

Method Summary

Modifier and TypeMethod and Description
public int
getPropertyIndex(String propertyName)

Get the property number of the unique key property

public Object
loadByUniqueKey(String propertyName, Object uniqueKey, SessionImplementor session)

Load an instance of the persistent class, by a unique key other than the primary key.

Inherited from org.hibernate.persister.entity.Loadable:
getDiscriminatorAliasgetDiscriminatorColumnNamegetDiscriminatorTypegetIdentifierAliasesgetIdentifierColumnNamesgetPropertyAliasesgetPropertyColumnNamesgetSubclassForDiscriminatorValuehasRowIdhasSubclasseshydrateisAbstractregisterAffectingFetchProfile

Method Detail

getPropertyIndexback to summary
public int getPropertyIndex(String propertyName)

Get the property number of the unique key property

loadByUniqueKeyback to summary
public Object loadByUniqueKey(String propertyName, Object uniqueKey, SessionImplementor session) throws HibernateException

Load an instance of the persistent class, by a unique key other than the primary key.