Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.loader.collection
Class CollectionLoader  view CollectionLoader download CollectionLoader.java

java.lang.Object
  extended byorg.hibernate.loader.Loader
      extended byorg.hibernate.loader.BasicLoader
          extended byorg.hibernate.loader.OuterJoinLoader
              extended byorg.hibernate.loader.collection.CollectionLoader
All Implemented Interfaces:
CollectionInitializer
Direct Known Subclasses:
BasicCollectionLoader, OneToManyLoader

public class CollectionLoader
extends org.hibernate.loader.OuterJoinLoader
implements CollectionInitializer

Superclass for loaders that initialize collections


Field Summary
private  org.hibernate.persister.collection.QueryableCollection collectionPersister
           
 
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
 
Constructor Summary
CollectionLoader(org.hibernate.persister.collection.QueryableCollection collectionPersister, org.hibernate.engine.SessionFactoryImplementor factory, java.util.Map enabledFilters)
           
 
Method Summary
protected  org.hibernate.type.Type getKeyType()
           
 void initialize(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
          Initialize the given collection
protected  boolean isSubselectLoadingEnabled()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.hibernate.loader.OuterJoinLoader
getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEnabledFilters, getEntityPersisters, getLockModes, 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, autoDiscoverTypes, bindNamedParameters, bindPositionalParameters, checkScrollability, doList, getEntityEagerPropertyFetches, getFactory, getNamedParameterLocs, getQueryIdentifier, getResultColumnOrRow, getResultList, getResultSet, hasSubselectLoadableCollections, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, scroll, upgradeLocks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

collectionPersister

private final org.hibernate.persister.collection.QueryableCollection collectionPersister
Constructor Detail

CollectionLoader

public CollectionLoader(org.hibernate.persister.collection.QueryableCollection collectionPersister,
                        org.hibernate.engine.SessionFactoryImplementor factory,
                        java.util.Map enabledFilters)
Method Detail

isSubselectLoadingEnabled

protected boolean isSubselectLoadingEnabled()

initialize

public void initialize(java.io.Serializable id,
                       org.hibernate.engine.SessionImplementor session)
                throws org.hibernate.HibernateException
Description copied from interface: CollectionInitializer
Initialize the given collection

Specified by:
initialize in interface CollectionInitializer

getKeyType

protected org.hibernate.type.Type getKeyType()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).