01: package org.hibernate.engine.query;
02:
03: import org.hibernate.engine.SessionFactoryImplementor;
04:
05: import java.io.Serializable;
06: import java.util.Map;
07:
08: /**
09: * Extends an HQLQueryPlan to maintain a reference to the collection-role name
10: * being filtered.
11: *
12: * @author <a href="mailto:steve@hibernate.org">Steve Ebersole </a>
13: */
14: public class FilterQueryPlan extends HQLQueryPlan implements
15: Serializable {
16:
17: private final String collectionRole;
18:
19: public FilterQueryPlan(String hql, String collectionRole,
20: boolean shallow, Map enabledFilters,
21: SessionFactoryImplementor factory) {
22: super (hql, collectionRole, shallow, enabledFilters, factory);
23: this .collectionRole = collectionRole;
24: }
25:
26: public String getCollectionRole() {
27: return collectionRole;
28: }
29: }
|