public class OrdinalParameterDescriptor extends java.lang.Object implements QueryParameter
Constructor and Description |
---|
OrdinalParameterDescriptor(int ordinalPosition,
Type expectedType,
int sourceLocation)
Constructs an ordinal parameter descriptor.
|
Modifier and Type | Method and Description |
---|---|
Type |
getExpectedType() |
java.lang.String |
getName() |
int |
getOrdinalPosition() |
java.lang.Class |
getParameterType() |
java.lang.Integer |
getPosition() |
int |
getSourceLocation() |
Type |
getType()
Get the Hibernate Type associated with this parameter.
|
boolean |
isJpaPositionalParameter()
JPA has a different definition of positional parameters than what legacy Hibernate HQL had.
|
public OrdinalParameterDescriptor(int ordinalPosition, Type expectedType, int sourceLocation)
ordinalPosition
- The ordinal positionexpectedType
- The expected type of the parametersourceLocation
- The location of the parameterpublic int getOrdinalPosition()
public Type getExpectedType()
public int getSourceLocation()
public Type getType()
QueryParameter
getType
in interface QueryParameter
public java.lang.String getName()
getName
in interface javax.persistence.Parameter
public java.lang.Integer getPosition()
getPosition
in interface javax.persistence.Parameter
public java.lang.Class getParameterType()
getParameterType
in interface javax.persistence.Parameter
public boolean isJpaPositionalParameter()
QueryParameter
isJpaPositionalParameter
in interface QueryParameter
true
if this is a JPA-style positional parameter; false
would indicate
we have either a named parameter (Parameter.getName()
would return a non-null
value) or a native
Hibernate positional parameter.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.