Package org.hibernate.query.sql.internal
Class ResultSetMappingProcessor
- java.lang.Object
-
- org.hibernate.query.sql.internal.ResultSetMappingProcessor
-
- All Implemented Interfaces:
SQLQueryParser.ParserContext
public class ResultSetMappingProcessor extends Object implements SQLQueryParser.ParserContext
Responsible for processing theResultSetMapping
defined by aNativeSelectQueryDefinition
and preprocessing it for consumption bySQLQueryParser
.
-
-
Constructor Summary
Constructors Constructor Description ResultSetMappingProcessor(ResultSetMapping resultSetMapping, SessionFactoryImplementor factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSetMapping
generateResultMapping(boolean queryHadAliases)
SQLLoadableCollection
getCollectionPersister(String alias)
String
getCollectionSuffix(String alias)
SQLLoadable
getEntityPersister(String alias)
String
getEntitySuffix(String alias)
String
getOwnerAlias(String alias)
Map<String,String[]>
getPropertyResultsMap(String alias)
boolean
isCollectionAlias(String alias)
boolean
isEntityAlias(String alias)
SQLQueryParser.ParserContext
process()
-
-
-
Constructor Detail
-
ResultSetMappingProcessor
public ResultSetMappingProcessor(ResultSetMapping resultSetMapping, SessionFactoryImplementor factory)
-
-
Method Detail
-
process
public SQLQueryParser.ParserContext process()
-
generateResultMapping
public ResultSetMapping generateResultMapping(boolean queryHadAliases)
-
isEntityAlias
public boolean isEntityAlias(String alias)
- Specified by:
isEntityAlias
in interfaceSQLQueryParser.ParserContext
-
isCollectionAlias
public boolean isCollectionAlias(String alias)
- Specified by:
isCollectionAlias
in interfaceSQLQueryParser.ParserContext
-
getEntityPersister
public SQLLoadable getEntityPersister(String alias)
- Specified by:
getEntityPersister
in interfaceSQLQueryParser.ParserContext
-
getCollectionPersister
public SQLLoadableCollection getCollectionPersister(String alias)
- Specified by:
getCollectionPersister
in interfaceSQLQueryParser.ParserContext
-
getEntitySuffix
public String getEntitySuffix(String alias)
- Specified by:
getEntitySuffix
in interfaceSQLQueryParser.ParserContext
-
getCollectionSuffix
public String getCollectionSuffix(String alias)
- Specified by:
getCollectionSuffix
in interfaceSQLQueryParser.ParserContext
-
getPropertyResultsMap
public Map<String,String[]> getPropertyResultsMap(String alias)
- Specified by:
getPropertyResultsMap
in interfaceSQLQueryParser.ParserContext
-
-