Package org.hibernate.engine.spi
Class SubselectFetch
- java.lang.Object
-
- org.hibernate.engine.spi.SubselectFetch
-
public class SubselectFetch extends Object
Encapsulates details related to entities which contain sub-select-fetchable collections and which were loaded in a Session so that those collections may be sub-select fetched later during initialization
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SubselectFetch.RegistrationHandler
static class
SubselectFetch.StandardRegistrationHandler
-
Constructor Summary
Constructors Constructor Description SubselectFetch(QuerySpec loadingSqlAst, TableGroup ownerTableGroup, JdbcParametersList loadingJdbcParameters, JdbcParameterBindings loadingJdbcParameterBindings, Set<EntityKey> resultingEntityKeys)
-
Method Summary
-
-
-
Constructor Detail
-
SubselectFetch
public SubselectFetch(QuerySpec loadingSqlAst, TableGroup ownerTableGroup, JdbcParametersList loadingJdbcParameters, JdbcParameterBindings loadingJdbcParameterBindings, Set<EntityKey> resultingEntityKeys)
-
-
Method Detail
-
getLoadingJdbcParameters
public JdbcParametersList getLoadingJdbcParameters()
-
getLoadingSqlAst
public QuerySpec getLoadingSqlAst()
The SQL AST select from which the owner was loaded
-
getOwnerTableGroup
public TableGroup getOwnerTableGroup()
The TableGroup for the owner within thegetLoadingSqlAst()
-
getLoadingJdbcParameterBindings
public JdbcParameterBindings getLoadingJdbcParameterBindings()
The JDBC parameter bindings related togetLoadingSqlAst()
for the specific execution that loaded the owners
-
getResultingEntityKeys
public Set<EntityKey> getResultingEntityKeys()
The entity-keys of all owners loaded from a particular execution Used for "empty collection" handling mostly
-
createRegistrationHandler
public static SubselectFetch.RegistrationHandler createRegistrationHandler(BatchFetchQueue batchFetchQueue, SelectStatement sqlAst, TableGroup tableGroup, JdbcParametersList jdbcParameters, JdbcParameterBindings jdbcParameterBindings)
-
createRegistrationHandler
public static SubselectFetch.RegistrationHandler createRegistrationHandler(BatchFetchQueue batchFetchQueue, SelectStatement sqlAst, JdbcParametersList jdbcParameters, JdbcParameterBindings jdbcParameterBindings)
-
-