org.hibernate.engine.query.sql

Class NativeSQLQueryNonScalarReturn

Implemented Interfaces:
NativeSQLQueryReturn, Serializable
Known Direct Subclasses:
NativeSQLQueryCollectionReturn, NativeSQLQueryJoinReturn, NativeSQLQueryRootReturn

public abstract class NativeSQLQueryNonScalarReturn
extends java.lang.Object
implements NativeSQLQueryReturn, Serializable

Represents the base information for a non-scalar return defined as part of a native sql query.
Author:
Steve Ebersole

Constructor Summary

NativeSQLQueryNonScalarReturn(String alias, Map propertyResults, LockMode lockMode)
Constructs some form of non-scalar return descriptor

Method Summary

String
getAlias()
Retrieve the defined result alias
LockMode
getLockMode()
Retrieve the lock-mode to apply to this return
Map
getPropertyResultsMap()
Retrieve the user-supplied column->property mappings.

Constructor Details

NativeSQLQueryNonScalarReturn

protected NativeSQLQueryNonScalarReturn(String alias,
                                        Map propertyResults,
                                        LockMode lockMode)
Constructs some form of non-scalar return descriptor
Parameters:
alias - The result alias
propertyResults - Any user-supplied column->property mappings
lockMode - The lock mode to apply to the return.

Method Details

getAlias

public String getAlias()
Retrieve the defined result alias
Returns:
The result alias.

getLockMode

public LockMode getLockMode()
Retrieve the lock-mode to apply to this return
Returns:
The lock mode

getPropertyResultsMap

public Map getPropertyResultsMap()
Retrieve the user-supplied column->property mappings.
Returns:
The property mappings.