Class CustomSubselectOneToManyLoader

java.lang.Object
org.hibernate.loader.Loader
org.hibernate.loader.BasicLoader
org.hibernate.loader.OuterJoinLoader
org.hibernate.loader.collection.CollectionLoader
org.hibernate.loader.collection.OneToManyLoader
org.hibernate.loader.collection.SubselectOneToManyLoader
com.blazebit.persistence.integration.hibernate.CustomSubselectOneToManyLoader
All Implemented Interfaces:
org.hibernate.loader.collection.CollectionInitializer

public class CustomSubselectOneToManyLoader extends org.hibernate.loader.collection.SubselectOneToManyLoader
Since:
1.2.0
Author:
Christian Beikov
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.hibernate.loader.Loader

    org.hibernate.loader.Loader.SqlStatementWrapper
  • Field Summary

    Fields inherited from class org.hibernate.loader.OuterJoinLoader

    aliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixes

    Fields inherited from class org.hibernate.loader.BasicLoader

    NO_SUFFIX

    Fields inherited from class org.hibernate.loader.Loader

    SELECT, SELECT_DISTINCT
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomSubselectOneToManyLoader(org.hibernate.persister.collection.QueryableCollection persister, String subquery, Collection entityKeys, org.hibernate.engine.spi.QueryParameters queryParameters, Map<String,int[]> namedParameterLocMap, org.hibernate.engine.spi.SessionFactoryImplementor factory, org.hibernate.engine.spi.LoadQueryInfluencers loadQueryInfluencers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
    bindParameterValues(PreparedStatement statement, org.hibernate.engine.spi.QueryParameters queryParameters, int startIndex, org.hibernate.engine.spi.SharedSessionContractImplementor session)
     

    Methods inherited from class org.hibernate.loader.collection.SubselectOneToManyLoader

    getNamedParameterLocs, initialize

    Methods inherited from class org.hibernate.loader.collection.CollectionLoader

    collectionPersister, getKeyType, isSubselectLoadingEnabled, toString

    Methods inherited from class org.hibernate.loader.OuterJoinLoader

    getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEntityPersisters, getLoadQueryInfluencers, getLockModes, getLockOptions, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initFromWalker

    Methods inherited from class org.hibernate.loader.BasicLoader

    generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate

    Methods inherited from class org.hibernate.loader.Loader

    applyLocks, applyPostLoadLocks, areResultSetRowsTransformedImmediately, autoDiscoverTypes, bindNamedParameters, bindPositionalParameters, bindPreparedStatement, checkScrollability, createCacheableResultTransformer, createSubselects, determineFollowOnLockMode, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, endCollectionLoad, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, generateQueryKey, getCompositeKeyManyToOneTargetIndices, getEntityEagerPerPropertyFetches, getEntityEagerPropertyFetches, getEntityPersister, getFactory, getLimitHandler, getOptionalObjectKey, getQueryIdentifier, getResultColumnOrRow, getResultFromQueryCache, getResultList, getResultRow, getResultRowAliases, getResultSet, getResultSet, getRowsFromResultSet, handleEmptyCollections, hasSubselectLoadableCollections, includeInResultRow, instanceAlreadyLoaded, instanceNotYetLoaded, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessResultSet, preprocessSQL, processDistinctKeyword, processResultSet, putResultInQueryCache, registerNonExists, resolveResultTransformer, scroll, shouldUseFollowOnLocking, upgradeLocks

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CustomSubselectOneToManyLoader

      public CustomSubselectOneToManyLoader(org.hibernate.persister.collection.QueryableCollection persister, String subquery, Collection entityKeys, org.hibernate.engine.spi.QueryParameters queryParameters, Map<String,int[]> namedParameterLocMap, org.hibernate.engine.spi.SessionFactoryImplementor factory, org.hibernate.engine.spi.LoadQueryInfluencers loadQueryInfluencers) throws org.hibernate.MappingException
      Throws:
      org.hibernate.MappingException
  • Method Details

    • bindParameterValues

      protected int bindParameterValues(PreparedStatement statement, org.hibernate.engine.spi.QueryParameters queryParameters, int startIndex, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
      Overrides:
      bindParameterValues in class org.hibernate.loader.Loader
      Throws:
      SQLException