KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > loader > custom > SQLQueryJoinReturn


1 // $Id: SQLQueryJoinReturn.java,v 1.5 2005/06/19 22:16:38 maxcsaucdk Exp $
2
package org.hibernate.loader.custom;
3
4 import java.util.Map JavaDoc;
5
6 import org.hibernate.LockMode;
7
8 /**
9  * Represents a return defined as part of a native sql query which
10  * names a fetched role.
11  *
12  * @author Steve
13  */

14 public class SQLQueryJoinReturn extends SQLQueryReturn {
15     private String JavaDoc ownerAlias;
16     private String JavaDoc ownerProperty;
17
18     public SQLQueryJoinReturn(String JavaDoc alias, String JavaDoc ownerAlias, String JavaDoc ownerProperty, Map JavaDoc propertyResults, LockMode lockMode) {
19         super(alias, propertyResults, lockMode);
20         this.ownerAlias = ownerAlias;
21         this.ownerProperty = ownerProperty;
22     }
23
24     public String JavaDoc getOwnerAlias() {
25         return ownerAlias;
26     }
27
28     public String JavaDoc getOwnerProperty() {
29         return ownerProperty;
30     }
31 }
32
Popular Tags