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

FetchReturn (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.loader.custom
Class FetchReturn

java.lang.Object
  extended byorg.hibernate.loader.custom.NonScalarReturn
      extended byorg.hibernate.loader.custom.FetchReturn
All Implemented Interfaces:
Return
Direct Known Subclasses:
CollectionFetchReturn, EntityFetchReturn

public abstract class FetchReturn
extends NonScalarReturn

Represents a return which names a fetched association.

Author:
Steve Ebersole

Constructor Summary
FetchReturn(NonScalarReturn owner, String ownerProperty, String alias, LockMode lockMode)
          Creates a return descriptor for an association fetch.
 
Method Summary
 NonScalarReturn getOwner()
          Retrieves the return descriptor for the owner of this fetch.
 String getOwnerProperty()
          The name of the property on the owner which represents this association.
 
Methods inherited from class org.hibernate.loader.custom.NonScalarReturn
getAlias, getLockMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchReturn

public FetchReturn(NonScalarReturn owner,
                   String ownerProperty,
                   String alias,
                   LockMode lockMode)
Creates a return descriptor for an association fetch.

Parameters:
owner - The return descriptor for the owner of the fetch
ownerProperty - The name of the property represernting the association being fetched
alias - The alias for the fetch
lockMode - The lock mode to apply to the fetched association.
Method Detail

getOwner

public NonScalarReturn getOwner()
Retrieves the return descriptor for the owner of this fetch.

Returns:
The owner

getOwnerProperty

public String getOwnerProperty()
The name of the property on the owner which represents this association.

Returns:
The property name.