T
- The parameter type type.public static class QueryImpl.JpaPositionalParameterRegistrationImpl<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
JpaPositionalParameterRegistrationImpl(QueryImpl jpaQuery,
Query nativeQuery,
Integer position,
Class<T> javaType) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return the parameter name, or null if the parameter is
not a named parameter or no name has been assigned.
|
Integer |
getPosition()
Return the parameter position, or null if the parameter
is not a positional parameter.
|
boolean |
isJpaPositionalParameter()
JPA has a different definition of positional parameters than what legacy Hibernate HQL had.
|
public String getName()
Parameter
public Integer getPosition()
Parameter
getPosition
in interface Parameter<T>
public boolean isJpaPositionalParameter()
ParameterRegistration
isJpaPositionalParameter
in interface ParameterRegistration<T>
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 © 2017 JBoss by Red Hat. All rights reserved.