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

NativeSQLQueryJoinReturn (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.engine.query.sql
Class NativeSQLQueryJoinReturn

java.lang.Object
  extended byorg.hibernate.engine.query.sql.NativeSQLQueryNonScalarReturn
      extended byorg.hibernate.engine.query.sql.NativeSQLQueryJoinReturn
All Implemented Interfaces:
NativeSQLQueryReturn, Serializable

public class NativeSQLQueryJoinReturn
extends NativeSQLQueryNonScalarReturn

Represents a return defined as part of a native sql query which names a fetched role.

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
NativeSQLQueryJoinReturn(String alias, String ownerAlias, String ownerProperty, Map propertyResults, LockMode lockMode)
          Construct a return descriptor representing some form of fetch.
 
Method Summary
 String getOwnerAlias()
          Retrieve the alias of the owner of this fetched association.
 String getOwnerProperty()
          Retrieve the property name (relative to the owner) which maps to the association to be fetched.
 
Methods inherited from class org.hibernate.engine.query.sql.NativeSQLQueryNonScalarReturn
getAlias, getLockMode, getPropertyResultsMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeSQLQueryJoinReturn

public NativeSQLQueryJoinReturn(String alias,
                                String ownerAlias,
                                String ownerProperty,
                                Map propertyResults,
                                LockMode lockMode)
Construct a return descriptor representing some form of fetch.

Parameters:
alias - The result alias
ownerAlias - The owner's result alias
ownerProperty - The owner's property representing the thing to be fetched
propertyResults - Any user-supplied column->property mappings
lockMode - The lock mode to apply
Method Detail

getOwnerAlias

public String getOwnerAlias()
Retrieve the alias of the owner of this fetched association.

Returns:
The owner's alias.

getOwnerProperty

public String getOwnerProperty()
Retrieve the property name (relative to the owner) which maps to the association to be fetched.

Returns:
The property name.