Package org.hibernate.loader.collection
Class BasicCollectionJoinWalker
- java.lang.Object
-
- org.hibernate.loader.JoinWalker
-
- org.hibernate.loader.collection.CollectionJoinWalker
-
- org.hibernate.loader.collection.BasicCollectionJoinWalker
-
public class BasicCollectionJoinWalker extends CollectionJoinWalker
Walker for collections of values and many-to-many associations- See Also:
BasicCollectionLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.loader.JoinWalker
JoinWalker.AssociationInitCallback
-
-
Field Summary
-
Fields inherited from class org.hibernate.loader.JoinWalker
aliases, associations, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, lockOptions, ownerAssociationTypes, owners, persisters, sql, suffixes
-
-
Constructor Summary
Constructors Constructor Description BasicCollectionJoinWalker(QueryableCollection collectionPersister, int batchSize, java.lang.String subquery, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JoinType
getJoinType(OuterJoinLoadable persister, PropertyPath path, int propertyNumber, AssociationType associationType, FetchMode metadataFetchMode, CascadeStyle metadataCascadeStyle, java.lang.String lhsTable, java.lang.String[] lhsColumns, boolean nullable, int currentDepth)
Determine the appropriate type of join (if any) to use to fetch the given association.java.lang.String
toString()
-
Methods inherited from class org.hibernate.loader.collection.CollectionJoinWalker
whereString
-
Methods inherited from class org.hibernate.loader.JoinWalker
countCollectionPersisters, countEntityPersisters, generateRootAlias, generateTableAlias, getAliases, getAssociations, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getFactory, getJoinType, getJoinType, getLoadQueryInfluencers, getLockModeArray, getLockModeOptions, getOwnerAssociationTypes, getOwners, getPersisters, getSQLString, getSuffixes, getWithClause, hasRestriction, initPersisters, initPersisters, initPersisters, isDuplicateAssociation, isDuplicateAssociation, isJoinable, isJoinedFetchEnabled, isJoinedFetchEnabledInMapping, isTooDeep, isTooManyCollections, mergeOrderings, mergeOuterJoins, orderBy, orderBy, selectString, setAliases, setCollectionOwners, setCollectionPersisters, setCollectionSuffixes, setOwnerAssociationTypes, setOwners, setPersisters, setSql, setSuffixes, walkCollectionTree, walkEntityTree, whereString
-
-
-
-
Constructor Detail
-
BasicCollectionJoinWalker
public BasicCollectionJoinWalker(QueryableCollection collectionPersister, int batchSize, java.lang.String subquery, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException
- Throws:
MappingException
-
-
Method Detail
-
getJoinType
protected JoinType getJoinType(OuterJoinLoadable persister, PropertyPath path, int propertyNumber, AssociationType associationType, FetchMode metadataFetchMode, CascadeStyle metadataCascadeStyle, java.lang.String lhsTable, java.lang.String[] lhsColumns, boolean nullable, int currentDepth) throws MappingException
Description copied from class:JoinWalker
Determine the appropriate type of join (if any) to use to fetch the given association.- Overrides:
getJoinType
in classJoinWalker
- Parameters:
persister
- The owner of the association.path
- The path to the associationpropertyNumber
- The property number representing the association.associationType
- The association type.metadataFetchMode
- The metadata-defined fetch mode.metadataCascadeStyle
- The metadata-defined cascade style.lhsTable
- The owner tablelhsColumns
- The owner join columnsnullable
- Is the association nullable.currentDepth
- Current join depth- Returns:
- type of join to use (
JoinType.INNER_JOIN
,JoinType.LEFT_OUTER_JOIN
, or -1 to indicate no joining. - Throws:
MappingException
- ??
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-