站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

UniqueKeyLoadable (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.persister
Interface UniqueKeyLoadable

All Superinterfaces:
ClassPersister, Loadable
All Known Implementing Classes:
AbstractEntityPersister

public interface UniqueKeyLoadable
extends Loadable

Author:
Gavin King

Field Summary
 
Fields inherited from interface net.sf.hibernate.persister.ClassPersister
ENTITY_ID
 
Method Summary
 String[] getUniqueKeyColumnNames(String propertyName)
          Get the columns of the unique key.
 Object loadByUniqueKey(String propertyName, Serializable uniqueKey, SessionImplementor session)
          Load an instance of the persistent class, by a unique key other than the primary key.
 
Methods inherited from interface net.sf.hibernate.persister.Loadable
getDiscriminatorAlias, getDiscriminatorType, getIdentifierAliases, getPropertyAliases, getSubclassForDiscriminatorValue, hasSubclasses
 
Methods inherited from interface net.sf.hibernate.persister.ClassPersister
createProxy, delete, findDirty, findModified, getCache, getClassMetadata, getClassName, getConcreteProxyClass, getCurrentPersistentState, getCurrentVersion, getIdentifier, getIdentifierGenerator, getIdentifierPropertyName, getIdentifierSpace, getIdentifierType, getMappedClass, getPropertyCascadeStyles, getPropertyInsertability, getPropertyNames, getPropertyNullability, getPropertySpaces, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyValue, getPropertyValue, getPropertyValues, getVersion, getVersionProperty, getVersionType, hasCache, hasCascades, hasCollections, hasIdentifierProperty, hasIdentifierPropertyOrEmbeddedCompositeIdentifier, hasProxy, implementsLifecycle, implementsValidatable, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isMutable, isUnsaved, isVersioned, load, lock, postInstantiate, setIdentifier, setPropertyValue, setPropertyValues, update
 

Method Detail

loadByUniqueKey

public Object loadByUniqueKey(String propertyName,
                              Serializable uniqueKey,
                              SessionImplementor session)
                       throws HibernateException,
                              SQLException
Load an instance of the persistent class, by a unique key other than the primary key.

Throws:
HibernateException
SQLException

getUniqueKeyColumnNames

public String[] getUniqueKeyColumnNames(String propertyName)
Get the columns of the unique key.