Top Constructors Methods
org.hibernate.cfg

public abstract Class ResultSetMappingBinder

extends Object
Class Inheritance
Known Direct Subclasses
org.hibernate.cfg.ResultSetMappingSecondPass, org.hibernate.cfg.NamedSQLQuerySecondPass
Imports
java.util.ArrayList, .HashMap, .Iterator, .List, .Set, .HashSet, .Map, org.dom4j.Element, org.hibernate.LockMode, .MappingException, org.hibernate.engine.query.sql.NativeSQLQueryCollectionReturn, .NativeSQLQueryJoinReturn, .NativeSQLQueryRootReturn, .NativeSQLQueryScalarReturn, org.hibernate.engine.ResultSetMappingDefinition, org.hibernate.mapping.Component, .PersistentClass, .Value, .Property, .ToOne, org.hibernate.type.Type, .TypeFactory, org.hibernate.util.ArrayHelper, .CollectionHelper, .StringHelper

Author
Emmanuel Bernard

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static NativeSQLQueryCollectionReturn
bindLoadCollection(Element returnElem, Mappings mappings)

private static Map<K, V>
bindPropertyResults(String alias, Element returnElement, PersistentClass pc, Mappings mappings)

private static NativeSQLQueryRootReturn
bindReturn(Element returnElem, Mappings mappings, int elementCount)

private static NativeSQLQueryJoinReturn
bindReturnJoin(Element returnElem, Mappings mappings)

protected static ResultSetMappingDefinition

Returns:

The description of the mappings...
buildResultSetMappingDefinition
(Element
The element containing the return definitions.
resultSetElem
,
String
No clue...
path
,
Mappings
The current processing state.
mappings
)

Build a ResultSetMappingDefinition given a containing element for the "return-XXX" elements

private static int
getIndexOfFirstMatchingProperty(List<E> propertyNames, String follower)

private static LockMode
getLockMode(String lockMode)

private static ArrayList<E>
getResultColumns(Element propertyresult)

private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ResultSetMappingBinderback to summary
public ResultSetMappingBinder()

Method Detail

bindLoadCollectionback to summary
private static NativeSQLQueryCollectionReturn bindLoadCollection(Element returnElem, Mappings mappings)
bindPropertyResultsback to summary
private static Map<K, V> bindPropertyResults(String alias, Element returnElement, PersistentClass pc, Mappings mappings)
bindReturnback to summary
private static NativeSQLQueryRootReturn bindReturn(Element returnElem, Mappings mappings, int elementCount)
bindReturnJoinback to summary
private static NativeSQLQueryJoinReturn bindReturnJoin(Element returnElem, Mappings mappings)
buildResultSetMappingDefinitionback to summary
protected static ResultSetMappingDefinition buildResultSetMappingDefinition(Element resultSetElem, String path, Mappings mappings)

Build a ResultSetMappingDefinition given a containing element for the "return-XXX" elements

Parameters
resultSetElem:Element

The element containing the return definitions.

path:String

No clue...

mappings:Mappings

The current processing state.

Returns:ResultSetMappingDefinition

The description of the mappings...

getIndexOfFirstMatchingPropertyback to summary
private static int getIndexOfFirstMatchingProperty(List<E> propertyNames, String follower)
getLockModeback to summary
private static LockMode getLockMode(String lockMode)
getResultColumnsback to summary
private static ArrayList<E> getResultColumns(Element propertyresult)
unquoteback to summary
private static String unquote(String name)