public abstract class AbstractExplicitParameterSpecification extends Object implements ExplicitParameterSpecification
Convenience base class for explicitly defined query parameters.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractExplicitParameterSpecification(int sourceLine,
int sourceColumn)
Constructs an AbstractExplicitParameterSpecification.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
getExpectedType()
Get the type which we are expeting for a bind into this parameter based
on translated contextual information.
|
int |
getSourceColumn()
Retrieves the column number (within the
ExplicitParameterSpecification.getSourceLine()) where this parameter occurs. |
int |
getSourceLine()
Retrieves the line number on which this parameter occurs in the source query.
|
void |
setExpectedType(Type expectedType)
Injects the expected type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderDisplayInfobindprotected AbstractExplicitParameterSpecification(int sourceLine,
int sourceColumn)
Constructs an AbstractExplicitParameterSpecification.
sourceLine - See getSourceLine()sourceColumn - See getSourceColumn()public int getSourceLine()
ExplicitParameterSpecificationRetrieves the line number on which this parameter occurs in the source query.
getSourceLine in interface ExplicitParameterSpecificationpublic int getSourceColumn()
ExplicitParameterSpecificationRetrieves the column number (within the ExplicitParameterSpecification.getSourceLine()) where this parameter occurs.
getSourceColumn in interface ExplicitParameterSpecificationpublic Type getExpectedType()
ParameterSpecificationGet the type which we are expeting for a bind into this parameter based on translated contextual information.
getExpectedType in interface ParameterSpecificationpublic void setExpectedType(Type expectedType)
ParameterSpecificationInjects the expected type. Called during translation.
setExpectedType in interface ParameterSpecificationexpectedType - The type to expect.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.