01: //$Id: CascadeEntityLoader.java 7652 2005-07-26 05:51:47Z oneovthafew $
02: package org.hibernate.loader.entity;
03:
04: import org.hibernate.MappingException;
05: import org.hibernate.engine.CascadingAction;
06: import org.hibernate.engine.SessionFactoryImplementor;
07: import org.hibernate.loader.JoinWalker;
08: import org.hibernate.persister.entity.OuterJoinLoadable;
09: import org.hibernate.util.CollectionHelper;
10:
11: public class CascadeEntityLoader extends AbstractEntityLoader {
12:
13: public CascadeEntityLoader(OuterJoinLoadable persister,
14: CascadingAction action, SessionFactoryImplementor factory)
15: throws MappingException {
16: super (persister, persister.getIdentifierType(), factory,
17: CollectionHelper.EMPTY_MAP);
18:
19: JoinWalker walker = new CascadeEntityJoinWalker(persister,
20: action, factory);
21: initFromWalker(walker);
22:
23: postInstantiate();
24:
25: log.debug("Static select for action " + action + " on entity "
26: + entityName + ": " + getSQLString());
27:
28: }
29:
30: }
|