org.hibernate.engine.query.sql
Class NativeSQLQueryNonScalarReturn

java.lang.Object
  extended by org.hibernate.engine.query.sql.NativeSQLQueryNonScalarReturn
All Implemented Interfaces:
Serializable, NativeSQLQueryReturn
Direct Known Subclasses:
NativeSQLQueryCollectionReturn, NativeSQLQueryJoinReturn, NativeSQLQueryRootReturn

public abstract class NativeSQLQueryNonScalarReturn
extends Object
implements NativeSQLQueryReturn, Serializable

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

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
protected NativeSQLQueryNonScalarReturn(String alias, Map<String,String[]> propertyResults, LockMode lockMode)
          Constructs some form of non-scalar return descriptor
 
Method Summary
 boolean equals(Object o)
           
 String getAlias()
          Retrieve the defined result alias
 LockMode getLockMode()
          Retrieve the lock-mode to apply to this return
 Map<String,String[]> getPropertyResultsMap()
          Retrieve the user-supplied column->property mappings.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeSQLQueryNonScalarReturn

protected NativeSQLQueryNonScalarReturn(String alias,
                                        Map<String,String[]> 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 Detail

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<String,String[]> getPropertyResultsMap()
Retrieve the user-supplied column->property mappings.

Returns:
The property mappings.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.