OneToManyLoaderpublic class OneToManyLoader extends CollectionLoader Loads one-to-many associations
The collection persister must implement QueryableCOllection. For
other collections, create a customized subclass of Loader. |
Fields Summary |
---|
private static final Log | log |
Constructors Summary |
---|
public OneToManyLoader(org.hibernate.persister.collection.QueryableCollection oneToManyPersister, org.hibernate.engine.SessionFactoryImplementor session, Map enabledFilters)
this(oneToManyPersister, 1, session, enabledFilters);
| public OneToManyLoader(org.hibernate.persister.collection.QueryableCollection oneToManyPersister, int batchSize, org.hibernate.engine.SessionFactoryImplementor factory, Map enabledFilters)
this(oneToManyPersister, batchSize, null, factory, enabledFilters);
| public OneToManyLoader(org.hibernate.persister.collection.QueryableCollection oneToManyPersister, int batchSize, String subquery, org.hibernate.engine.SessionFactoryImplementor factory, Map enabledFilters)
super(oneToManyPersister, factory, enabledFilters);
JoinWalker walker = new OneToManyJoinWalker(
oneToManyPersister,
batchSize,
subquery,
factory,
enabledFilters
);
initFromWalker( walker );
postInstantiate();
log.debug( "Static select for one-to-many " + oneToManyPersister.getRole() + ": " + getSQLString() );
|
|