Package org.hibernate.loader.custom
Class ResultRowProcessor
- java.lang.Object
-
- org.hibernate.loader.custom.ResultRowProcessor
-
public class ResultRowProcessor extends Object
Models an entire "row" of results within a custom query
-
-
Constructor Summary
Constructors Constructor Description ResultRowProcessor(boolean hasScalars, org.hibernate.loader.custom.ResultColumnProcessor[] columnProcessors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
buildResultRow(Object[] data, ResultSet resultSet, boolean hasTransformer, SharedSessionContractImplementor session)
Build a logical result row.Object[]
buildResultRow(Object[] data, ResultSet resultSet, SharedSessionContractImplementor session)
org.hibernate.loader.custom.ResultColumnProcessor[]
getColumnProcessors()
void
prepareForAutoDiscovery(org.hibernate.loader.custom.JdbcResultMetadata metadata)
-
-
-
Method Detail
-
getColumnProcessors
public org.hibernate.loader.custom.ResultColumnProcessor[] getColumnProcessors()
-
prepareForAutoDiscovery
public void prepareForAutoDiscovery(org.hibernate.loader.custom.JdbcResultMetadata metadata) throws SQLException
- Throws:
SQLException
-
buildResultRow
public Object buildResultRow(Object[] data, ResultSet resultSet, boolean hasTransformer, SharedSessionContractImplementor 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 associatedResultTransformer
session
- The session from which the query request originated.- Returns:
- The logical result row
- Throws:
SQLException
HibernateException
-
buildResultRow
public Object[] buildResultRow(Object[] data, ResultSet resultSet, SharedSessionContractImplementor session) throws SQLException, HibernateException
- Throws:
SQLException
HibernateException
-
-