public class ScalarResultColumnProcessor
extends java.lang.Object
Constructor and Description |
---|
ScalarResultColumnProcessor(int position) |
ScalarResultColumnProcessor(java.lang.String alias,
Type type) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
extract(java.lang.Object[] data,
java.sql.ResultSet resultSet,
SharedSessionContractImplementor session)
Perform The extraction
|
void |
performDiscovery(org.hibernate.loader.custom.JdbcResultMetadata metadata,
java.util.List<Type> types,
java.util.List<java.lang.String> aliases)
Perform discovery, if needed.
|
public ScalarResultColumnProcessor(int position)
public ScalarResultColumnProcessor(java.lang.String alias, Type type)
public void performDiscovery(org.hibernate.loader.custom.JdbcResultMetadata metadata, java.util.List<Type> types, java.util.List<java.lang.String> aliases) throws java.sql.SQLException
metadata
- Delegate for accessing metadata about the JDBC ResultSettypes
- The building List of typesaliases
- The building list of column names/aliasesjava.sql.SQLException
- Indicates a problem accessing the JDBC objectspublic java.lang.Object extract(java.lang.Object[] data, java.sql.ResultSet resultSet, SharedSessionContractImplementor session) throws java.sql.SQLException, HibernateException
data
- All non-scalar results (handled at a higher level than these processors)resultSet
- The JDBC result set.session
- The Hibernate Sessionjava.sql.SQLException
- Indicates a problem accessing the JDBC objectsHibernateException
- Indicates a higher-level problem already categorized by HibernateCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.