01: package org.hibernate.engine.query.sql;
02:
03: import org.hibernate.type.Type;
04:
05: /**
06: * Describes a scalar return in a native SQL query.
07: *
08: * @author gloegl
09: */
10: public class NativeSQLQueryScalarReturn implements NativeSQLQueryReturn {
11: private Type type;
12: private String columnAlias;
13:
14: public NativeSQLQueryScalarReturn(String alias, Type type) {
15: this .type = type;
16: this .columnAlias = alias;
17: }
18:
19: public String getColumnAlias() {
20: return columnAlias;
21: }
22:
23: public Type getType() {
24: return type;
25: }
26:
27: }
|