01: package org.hibernate.engine.query;
02:
03: import org.hibernate.type.Type;
04:
05: import java.io.Serializable;
06:
07: /**
08: * Descriptor regarding a named parameter.
09: *
10: * @author Steve Ebersole
11: */
12: public class NamedParameterDescriptor implements Serializable {
13: private final String name;
14: private final Type expectedType;
15: private final int[] sourceLocations;
16: private final boolean jpaStyle;
17:
18: public NamedParameterDescriptor(String name, Type expectedType,
19: int[] sourceLocations, boolean jpaStyle) {
20: this .name = name;
21: this .expectedType = expectedType;
22: this .sourceLocations = sourceLocations;
23: this .jpaStyle = jpaStyle;
24: }
25:
26: public String getName() {
27: return name;
28: }
29:
30: public Type getExpectedType() {
31: return expectedType;
32: }
33:
34: public int[] getSourceLocations() {
35: return sourceLocations;
36: }
37:
38: public boolean isJpaStyle() {
39: return jpaStyle;
40: }
41: }
|