1 | public class BasicCollectionLoader extends CollectionLoader {↵ | | 1 | public class OneToManyLoader extends CollectionLoader {↵
|
|
2 | private static final Logger log = LoggerFactory.getLogger(BasicCollectionLoader.class);↵ | | 2 | private static final Logger log = LoggerFactory.getLogger(OneToManyLoader.class);↵
|
|
3 | public BasicCollectionLoader(↵ | | 3 | public OneToManyLoader(↵
|
4 | QueryableCollection collectionPersister, ↵ | | 4 | QueryableCollection oneToManyPersister, ↵
|
5 | SessionFactoryImplementor session, ↵ | | 5 | SessionFactoryImplementor session, ↵
|
6 | Map enabledFilters)↵ | | 6 | Map enabledFilters)↵
|
7 | throws MappingException {↵ | | 7 | throws MappingException {↵
|
8 | this(collectionPersister, 1, session, enabledFilters);↵ | | 8 | this(oneToManyPersister, 1, session, enabledFilters);↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public BasicCollectionLoader(↵ | | 10 | public OneToManyLoader(↵
|
11 | QueryableCollection collectionPersister, ↵ | | 11 | QueryableCollection oneToManyPersister, ↵
|
12 | int batchSize, ↵ | | 12 | int batchSize, ↵
|
13 | SessionFactoryImplementor factory, ↵ | | 13 | SessionFactoryImplementor factory, ↵
|
14 | Map enabledFilters)↵ | | 14 | Map enabledFilters)↵
|
15 | throws MappingException {↵ | | 15 | throws MappingException {↵
|
16 | this(collectionPersister, batchSize, null, factory, enabledFilters);↵ | | 16 | this(oneToManyPersister, batchSize, null, factory, enabledFilters);↵
|
17 | }↵ | | 17 | }↵
|
18 | ↵ | | |
|
19 | protected BasicCollectionLoader(↵ | | 18 | public OneToManyLoader(↵
|
20 | QueryableCollection collectionPersister, ↵ | | 19 | QueryableCollection oneToManyPersister, ↵
|
21 | int batchSize, ↵ | | 20 | int batchSize, ↵
|
22 | String subquery, ↵ | | 21 | String subquery, ↵
|
23 | SessionFactoryImplementor factory, ↵ | | 22 | SessionFactoryImplementor factory, ↵
|
24 | Map enabledFilters)↵ | | 23 | Map enabledFilters)↵
|
25 | throws MappingException {↵ | | 24 | throws MappingException {↵
|
26 | ↵ | | |
|
27 | super(collectionPersister, factory, enabledFilters);↵ | | 25 | super(oneToManyPersister, factory, enabledFilters);↵
|
28 | ↵ | | 26 | ↵
|
29 | JoinWalker walker = new BasicCollectionJoinWalker(↵ | | 27 | JoinWalker walker = new OneToManyJoinWalker(↵
|
30 | collectionPersister, ↵ | | 28 | oneToManyPersister, ↵
|
31 | batchSize, ↵ | | 29 | batchSize, ↵
|
32 | subquery, ↵ | | 30 | subquery, ↵
|
33 | factory, ↵ | | 31 | factory, ↵
|
34 | enabledFilters↵ | | 32 | enabledFilters↵
|
35 | );↵ | | 33 | );↵
|
36 | initFromWalker( walker );↵ | | 34 | initFromWalker( walker );↵
|
|
37 | postInstantiate();↵ | | 35 | postInstantiate();↵
|
|
38 | log.debug( "Static select for collection " + collectionPersister.getRole() + ": " + getSQLString() ) | | 36 | log.debug( "Static select for one-to-many " + oneToManyPersister.getRole() + ": " + getSQLString() )
|