01: package org.hibernate.loader.custom;
02:
03: import org.hibernate.type.Type;
04:
05: /**
06: * Represent a scalar (aka simple value) return within a query result.
07: *
08: * @author Steve Ebersole
09: */
10: public class ScalarReturn implements Return {
11: private final Type type;
12: private final String columnAlias;
13:
14: public ScalarReturn(Type type, String columnAlias) {
15: this .type = type;
16: this .columnAlias = columnAlias;
17: }
18:
19: public Type getType() {
20: return type;
21: }
22:
23: public String getColumnAlias() {
24: return columnAlias;
25: }
26: }
|