Top Description Fields Constructors Methods
org.hibernate.loader.collection

public Class BasicCollectionJoinWalker

extends CollectionJoinWalker
Class Inheritance
Imports
java.util.ArrayList, .Iterator, .List, .Map, org.hibernate.FetchMode, .Filter, .LockMode, .MappingException, org.hibernate.engine.spi.CascadeStyle, .LoadQueryInfluencers, .SessionFactoryImplementor, org.hibernate.internal.util.StringHelper, org.hibernate.loader.BasicLoader, .OuterJoinableAssociation, .PropertyPath, org.hibernate.persister.collection.QueryableCollection, org.hibernate.persister.entity.OuterJoinLoadable, org.hibernate.sql.JoinFragment, .JoinType, .Select, org.hibernate.type.AssociationType

Walker for collections of values and many-to-many associations
Author
Gavin King
See Also
BasicCollectionLoader

Field Summary

Modifier and TypeField and Description
private final QueryableCollection

Constructor Summary

AccessConstructor and Description
public
BasicCollectionJoinWalker(QueryableCollection collectionPersister, int batchSize, String subquery, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected JoinType
getJoinType(OuterJoinLoadable
The owner of the association.
persister
,
PropertyPath
The path to the association
path
,
int
The property number representing the association.
propertyNumber
,
AssociationType
The association type.
associationType
,
FetchMode
The metadata-defined fetch mode.
metadataFetchMode
,
CascadeStyle
The metadata-defined cascade style.
metadataCascadeStyle
,
String
The owner table
lhsTable
,
String[]
The owner join columns
lhsColumns
,
boolean
Is the association nullable.
nullable
,
int
Current join depth
currentDepth
)

Overrides org.hibernate.loader.JoinWalker.getJoinType.

Determine the appropriate type of join (if any) to use to fetch the given association.
private void
initStatementString(final String alias, final int batchSize, final String subquery)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.loader.collection.CollectionJoinWalker:
whereString

Field Detail

collectionPersisterback to summary
private final QueryableCollection collectionPersister

Constructor Detail

BasicCollectionJoinWalkerback to summary
public BasicCollectionJoinWalker(QueryableCollection collectionPersister, int batchSize, String subquery, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

getJoinTypeback to summary
protected JoinType getJoinType(OuterJoinLoadable persister, PropertyPath path, int propertyNumber, AssociationType associationType, FetchMode metadataFetchMode, CascadeStyle metadataCascadeStyle, String lhsTable, String[] lhsColumns, boolean nullable, int currentDepth) throws MappingException

Overrides org.hibernate.loader.JoinWalker.getJoinType.

Doc from org.hibernate.loader.JoinWalker.getJoinType.

Determine the appropriate type of join (if any) to use to fetch the given association.

Parameters
persister:OuterJoinLoadable

The owner of the association.

path:PropertyPath

The path to the association

propertyNumber:int

The property number representing the association.

associationType:AssociationType

The association type.

metadataFetchMode:FetchMode

The metadata-defined fetch mode.

metadataCascadeStyle:CascadeStyle

The metadata-defined cascade style.

lhsTable:String

The owner table

lhsColumns:String[]

The owner join columns

nullable:boolean

Is the association nullable.

currentDepth:int

Current join depth

Returns:JoinType

type of join to use (org.hibernate.sql.JoinType#INNER_JOIN, org.hibernate.sql.JoinType#LEFT_OUTER_JOIN, or -1 to indicate no joining.

Exceptions
MappingException:
??
initStatementStringback to summary
private void initStatementString(final String alias, final int batchSize, final String subquery) throws MappingException
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.