public abstract class

OuterJoinLoader

extends BasicLoader
java.lang.Object
   ↳ org.hibernate.loader.Loader
     ↳ org.hibernate.loader.BasicLoader
       ↳ org.hibernate.loader.OuterJoinLoader
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Implements logic for walking a tree of associated classes. Generates an SQL select string containing all properties of those classes. Tables are joined using an ANSI-style left outer join.

Summary

Fields
protected String[] aliases
protected int[] collectionOwners
protected CollectionPersister[] collectionPersisters
protected String[] collectionSuffixes
protected LockMode[] lockModeArray
protected EntityType[] ownerAssociationTypes
protected int[] owners
protected Loadable[] persisters
protected String sql
protected String[] suffixes
[Expand]
Inherited Fields
From class org.hibernate.loader.BasicLoader
Public Constructors
OuterJoinLoader(SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
Public Methods
LoadQueryInfluencers getLoadQueryInfluencers()
Protected Methods
final String[] getAliases()
Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading
final int[] getCollectionOwners()
Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (ie.
final CollectionPersister[] getCollectionPersisters()
An (optional) persister for a collection to be initialized; only collection loaders return a non-null value
String[] getCollectionSuffixes()
final Dialect getDialect()
final Loadable[] getEntityPersisters()
An array of persisters of entity classes contained in each row of results; implemented by all subclasses
LockMode[] getLockModes(LockOptions lockOptions)
What lock options does this load entities with?
LockOptions getLockOptions()
EntityType[] getOwnerAssociationTypes()
An array of the owner types corresponding to the getOwners() returns.
int[] getOwners()
An array of indexes of the entity that owns a one-to-one association to the entity at the given index (-1 if there is no "owner").
final String getSQLString()
The SQL query string to be called; implemented by all subclasses
String[] getSuffixes()
void initFromWalker(JoinWalker walker)
[Expand]
Inherited Methods
From class org.hibernate.loader.BasicLoader
From class org.hibernate.loader.Loader
From class java.lang.Object

Fields

protected String[] aliases

protected int[] collectionOwners

protected CollectionPersister[] collectionPersisters

protected String[] collectionSuffixes

protected LockMode[] lockModeArray

protected EntityType[] ownerAssociationTypes

protected int[] owners

protected Loadable[] persisters

protected String sql

protected String[] suffixes

Public Constructors

public OuterJoinLoader (SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Public Methods

public LoadQueryInfluencers getLoadQueryInfluencers ()

Protected Methods

protected final String[] getAliases ()

Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading

protected final int[] getCollectionOwners ()

Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (ie. in the case of a collection initializer) or no collection.

protected final CollectionPersister[] getCollectionPersisters ()

An (optional) persister for a collection to be initialized; only collection loaders return a non-null value

protected String[] getCollectionSuffixes ()

protected final Dialect getDialect ()

protected final Loadable[] getEntityPersisters ()

An array of persisters of entity classes contained in each row of results; implemented by all subclasses

Returns
  • The entity persisters.

protected LockMode[] getLockModes (LockOptions lockOptions)

What lock options does this load entities with?

Parameters
lockOptions a collection of lock options specified dynamically via the Query interface

protected LockOptions getLockOptions ()

protected EntityType[] getOwnerAssociationTypes ()

An array of the owner types corresponding to the getOwners() returns. Indices indicating no owner would be null here.

Returns
  • The types for the owners.

protected int[] getOwners ()

An array of indexes of the entity that owns a one-to-one association to the entity at the given index (-1 if there is no "owner"). The indexes contained here are relative to the result of getEntityPersisters().

Returns
  • The owner indicators (see discussion above).

protected final String getSQLString ()

The SQL query string to be called; implemented by all subclasses

Returns
  • The sql command this loader should use to get its ResultSet.

protected String[] getSuffixes ()

protected void initFromWalker (JoinWalker walker)