Top Description Inners Fields Constructors Methods
org.hibernate.engine.spi

public Class SubselectFetch

extends Object
Class Inheritance
Imports
java.util.HashMap, .HashSet, .List, .Map, .Set, org.hibernate.internal.util.NullnessUtil, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.tree.from.TableGroup, org.hibernate.sql.ast.tree.select.QuerySpec, .SelectStatement, org.hibernate.sql.exec.spi.JdbcParameterBindings, .JdbcParametersList, org.hibernate.sql.results.graph.entity.EntityInitializer

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 and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static class

Field Summary

Modifier and TypeField and Description
private final JdbcParameterBindings
private final JdbcParametersList
private final QuerySpec
private static final SubselectFetch.RegistrationHandler
private final TableGroup
private final Set<EntityKey>

Constructor Summary

AccessConstructor and Description
public
SubselectFetch(QuerySpec loadingSqlAst, TableGroup ownerTableGroup, JdbcParametersList loadingJdbcParameters, JdbcParameterBindings loadingJdbcParameterBindings, Set<EntityKey> resultingEntityKeys)

Method Summary

Modifier and TypeMethod and Description
public static SubselectFetch.RegistrationHandler
createRegistrationHandler(BatchFetchQueue batchFetchQueue, SelectStatement sqlAst, TableGroup tableGroup, JdbcParametersList jdbcParameters, JdbcParameterBindings jdbcParameterBindings)

public static SubselectFetch.RegistrationHandler
createRegistrationHandler(BatchFetchQueue batchFetchQueue, SelectStatement sqlAst, JdbcParametersList jdbcParameters, JdbcParameterBindings jdbcParameterBindings)

public JdbcParameterBindings
getLoadingJdbcParameterBindings()

The JDBC parameter bindings related to getLoadingSqlAst() for the specific execution that loaded the owners

public JdbcParametersList
public QuerySpec
getLoadingSqlAst()

The SQL AST select from which the owner was loaded

public TableGroup
getOwnerTableGroup()

The TableGroup for the owner within the getLoadingSqlAst()

public Set<EntityKey>
getResultingEntityKeys()

The entity-keys of all owners loaded from a particular execution Used for "empty collection" handling mostly

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

loadingJdbcParameterBindingsback to summary
private final JdbcParameterBindings loadingJdbcParameterBindings
loadingJdbcParametersback to summary
private final JdbcParametersList loadingJdbcParameters
loadingSqlAstback to summary
private final QuerySpec loadingSqlAst
NO_OP_REG_HANDLERback to summary
private static final SubselectFetch.RegistrationHandler NO_OP_REG_HANDLER
ownerTableGroupback to summary
private final TableGroup ownerTableGroup
resultingEntityKeysback to summary
private final Set<EntityKey> resultingEntityKeys

Constructor Detail

SubselectFetchback to summary
public SubselectFetch(QuerySpec loadingSqlAst, TableGroup ownerTableGroup, JdbcParametersList loadingJdbcParameters, JdbcParameterBindings loadingJdbcParameterBindings, Set<EntityKey> resultingEntityKeys)

Method Detail

createRegistrationHandlerback to summary
public static SubselectFetch.RegistrationHandler createRegistrationHandler(BatchFetchQueue batchFetchQueue, SelectStatement sqlAst, TableGroup tableGroup, JdbcParametersList jdbcParameters, JdbcParameterBindings jdbcParameterBindings)
createRegistrationHandlerback to summary
public static SubselectFetch.RegistrationHandler createRegistrationHandler(BatchFetchQueue batchFetchQueue, SelectStatement sqlAst, JdbcParametersList jdbcParameters, JdbcParameterBindings jdbcParameterBindings)
getLoadingJdbcParameterBindingsback to summary
public JdbcParameterBindings getLoadingJdbcParameterBindings()

The JDBC parameter bindings related to getLoadingSqlAst() for the specific execution that loaded the owners

getLoadingJdbcParametersback to summary
public JdbcParametersList getLoadingJdbcParameters()
getLoadingSqlAstback to summary
public QuerySpec getLoadingSqlAst()

The SQL AST select from which the owner was loaded

getOwnerTableGroupback to summary
public TableGroup getOwnerTableGroup()

The TableGroup for the owner within the getLoadingSqlAst()

getResultingEntityKeysback to summary
public Set<EntityKey> getResultingEntityKeys()

The entity-keys of all owners loaded from a particular execution Used for "empty collection" handling mostly

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.hibernate.engine.spi back to summary

public Interface SubselectFetch.RegistrationHandler

Known Direct Implementers
org.hibernate.engine.spi.SubselectFetch.StandardRegistrationHandler

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

addKeyback to summary
public void addKey(EntityHolder holder)
org.hibernate.engine.spi back to summary

public Class SubselectFetch.StandardRegistrationHandler

extends Object
implements RegistrationHandler
Class Inheritance
  • java.lang.Object
  • org.hibernate.engine.spi.SubselectFetch.StandardRegistrationHandler
All Implemented Interfaces
org.hibernate.engine.spi.SubselectFetch.RegistrationHandler

Field Summary

Modifier and TypeField and Description
private final BatchFetchQueue
private final JdbcParameterBindings
private final JdbcParametersList
private final SelectStatement
private final Map<NavigablePath, SubselectFetch>

Constructor Summary

AccessConstructor and Description
private
StandardRegistrationHandler(BatchFetchQueue batchFetchQueue, SelectStatement loadingSqlAst, TableGroup ownerTableGroup, JdbcParametersList loadingJdbcParameters, JdbcParameterBindings loadingJdbcParameterBindings)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

batchFetchQueueback to summary
private final BatchFetchQueue batchFetchQueue
loadingJdbcParameterBindingsback to summary
private final JdbcParameterBindings loadingJdbcParameterBindings
loadingJdbcParametersback to summary
private final JdbcParametersList loadingJdbcParameters
loadingSqlAstback to summary
private final SelectStatement loadingSqlAst
subselectFetchesback to summary
private final Map<NavigablePath, SubselectFetch> subselectFetches

Constructor Detail

StandardRegistrationHandlerback to summary
private StandardRegistrationHandler(BatchFetchQueue batchFetchQueue, SelectStatement loadingSqlAst, TableGroup ownerTableGroup, JdbcParametersList loadingJdbcParameters, JdbcParameterBindings loadingJdbcParameterBindings)

Method Detail

addKeyback to summary
public void addKey(EntityHolder holder)

Implements org.hibernate.engine.spi.SubselectFetch.RegistrationHandler.addKey.

Annotations
@Override