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

CustomLoader.ResultRowProcessor (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.loader.custom
Class CustomLoader.ResultRowProcessor

java.lang.Object
  extended byorg.hibernate.loader.custom.CustomLoader.ResultRowProcessor
Enclosing class:
CustomLoader

public class CustomLoader.ResultRowProcessor
extends Object


Constructor Summary
CustomLoader.ResultRowProcessor(boolean hasScalars, org.hibernate.loader.custom.CustomLoader.ResultColumnProcessor[] columnProcessors)
           
 
Method Summary
 Object buildResultRow(Object[] data, ResultSet resultSet, boolean hasTransformer, SessionImplementor session)
          Build a logical result row.
 void prepareForAutoDiscovery(org.hibernate.loader.custom.CustomLoader.Metadata metadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomLoader.ResultRowProcessor

public CustomLoader.ResultRowProcessor(boolean hasScalars,
                                       org.hibernate.loader.custom.CustomLoader.ResultColumnProcessor[] columnProcessors)
Method Detail

prepareForAutoDiscovery

public void prepareForAutoDiscovery(org.hibernate.loader.custom.CustomLoader.Metadata metadata)
                             throws SQLException
Throws:
SQLException

buildResultRow

public Object buildResultRow(Object[] data,
                             ResultSet resultSet,
                             boolean hasTransformer,
                             SessionImplementor session)
                      throws SQLException,
                             HibernateException
Build a logical result row.

At this point, Loader has already processed all non-scalar result data. We just need to account for scalar result data here...

Parameters:
data - Entity data defined as "root returns" and already handled by the normal Loader mechanism.
resultSet - The JDBC result set (positioned at the row currently being processed).
hasTransformer - Does this query have an associated ResultTransformer
session - The session from which the query request originated.
Returns:
The logical result row
Throws:
SQLException
HibernateException