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, wait
renderDisplayInfo
bind
protected AbstractExplicitParameterSpecification(int sourceLine, int sourceColumn)
Constructs an AbstractExplicitParameterSpecification.
sourceLine
- See getSourceLine()
sourceColumn
- See getSourceColumn()
public int getSourceLine()
ExplicitParameterSpecification
Retrieves the line number on which this parameter occurs in the source query.
getSourceLine
in interface ExplicitParameterSpecification
public int getSourceColumn()
ExplicitParameterSpecification
Retrieves the column number (within the ExplicitParameterSpecification.getSourceLine()
) where this parameter occurs.
getSourceColumn
in interface ExplicitParameterSpecification
public Type getExpectedType()
ParameterSpecification
Get the type which we are expeting for a bind into this parameter based on translated contextual information.
getExpectedType
in interface ParameterSpecification
public void setExpectedType(Type expectedType)
ParameterSpecification
Injects the expected type. Called during translation.
setExpectedType
in interface ParameterSpecification
expectedType
- The type to expect.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.