Extract a value from the JDBC result set. This is useful for 2-phase property initialization - the second phase is a call to {@link #resolve}This hydrated value will be either:
- in the case of an entity or collection type, the key
- otherwise, the value itself
@param rs The JDBC result set
@param names the column names making up this type value (use to read from result set)
@param session The originating session
@param owner the parent entity
@return An entity or collection key, or an actual value.
@throws HibernateException An error from Hibernate
@throws SQLException An error from the JDBC driver
@see #resolve