javax.persistence.ConstructorResult within the custom query.
| Modifier and Type | Field and Description |
|---|---|
| private Constructor | |
| private final ScalarResultColumnProcessor[] | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | ConstructorResultColumnProcessor(Class<T> targetClass, ScalarResultColumnProcessor[] scalarProcessors)
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public Object | extract(Object[]
All non-scalar results (handled at a higher level than these processors) data, ResultSet The JDBC result set. resultSet, SharedSessionContractImplementor The Hibernate Session session)Implements org. |
| public void | performDiscovery(JdbcResultMetadata
Delegate for accessing metadata about the JDBC ResultSet metadata, List<Type> The building List of types types, List<String> The building list of column names/aliases aliases)Implements org. |
| private static Constructor |
| constructor | back to summary |
|---|---|
| private Constructor<T> constructor | |
| scalarProcessors | back to summary |
|---|---|
| private final ScalarResultColumnProcessor[] scalarProcessors | |
| targetClass | back to summary |
|---|---|
| private final Class<T> targetClass | |
| ConstructorResultColumnProcessor | back to summary |
|---|---|
| public ConstructorResultColumnProcessor(Class<T> targetClass, ScalarResultColumnProcessor[] scalarProcessors) | |
| areAssignmentCompatible | back to summary |
|---|---|
private static boolean areAssignmentCompatible(Class<T> argumentType, Class<T> typeReturnedClass)
| |
| extract | back to summary |
|---|---|
| public Object extract(Object[] data, ResultSet resultSet, SharedSessionContractImplementor session) throws SQLException, HibernateException Implements org. Doc from org. Perform The extraction
| |
| performDiscovery | back to summary |
|---|---|
| public void performDiscovery(JdbcResultMetadata metadata, List<Type> types, List<String> aliases) throws SQLException Implements org. Doc from org. Perform discovery, if needed. Typically discovery activities include looking up the column name in the ResultSet or JDBC type codes.
| |
| resolveConstructor | back to summary |
|---|---|
| private static Constructor | |