KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Id: SQLQueryRootReturn.java,v 1.6 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 "root" entity. A root entity means it is explicitly a
11  * "column" in the result, as opposed to a fetched relationship or role.
12  *
13  * @author Steve
14  */

15 public class SQLQueryRootReturn extends SQLQueryReturn {
16     private String JavaDoc returnEntityName;
17     public SQLQueryRootReturn(String JavaDoc alias, String JavaDoc returnEntityName, LockMode lockMode) {
18         this(alias, returnEntityName, null, lockMode);
19     }
20
21     public SQLQueryRootReturn(String JavaDoc alias, String JavaDoc entityName, Map JavaDoc propertyResults, LockMode lockMode) {
22         super(alias, propertyResults, lockMode);
23         this.returnEntityName = entityName;
24         
25     }
26
27     public String JavaDoc getReturnEntityName() {
28         return returnEntityName;
29     }
30     
31 }
32
Popular Tags