01: package org.hibernate.param;
02:
03: import org.hibernate.type.Type;
04:
05: /**
06: * Convenience base class for explicitly defined query parameters.
07: *
08: * @author <a href="mailto:steve@hibernate.org">Steve Ebersole </a>
09: */
10: public abstract class AbstractExplicitParameterSpecification implements
11: ExplicitParameterSpecification {
12:
13: private final int sourceLine;
14: private final int sourceColumn;
15: private Type expectedType;
16:
17: protected AbstractExplicitParameterSpecification(int sourceLine,
18: int sourceColumn) {
19: this .sourceLine = sourceLine;
20: this .sourceColumn = sourceColumn;
21: }
22:
23: public int getSourceLine() {
24: return sourceLine;
25: }
26:
27: public int getSourceColumn() {
28: return sourceColumn;
29: }
30:
31: public Type getExpectedType() {
32: return expectedType;
33: }
34:
35: public void setExpectedType(Type expectedType) {
36: this.expectedType = expectedType;
37: }
38: }
|