Class ResultRowProcessor


  • public class ResultRowProcessor
    extends java.lang.Object
    Models an entire "row" of results within a custom query
    • Constructor Detail

      • ResultRowProcessor

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

      • getColumnProcessors

        public org.hibernate.loader.custom.ResultColumnProcessor[] getColumnProcessors()
      • prepareForAutoDiscovery

        public void prepareForAutoDiscovery​(org.hibernate.loader.custom.JdbcResultMetadata metadata)
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • buildResultRow

        public java.lang.Object buildResultRow​(java.lang.Object[] data,
                                               java.sql.ResultSet resultSet,
                                               boolean hasTransformer,
                                               SharedSessionContractImplementor session)
                                        throws java.sql.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:
        java.sql.SQLException
        HibernateException