public class QueryParameterNamedImpl<T> extends QueryParameterImpl<T> implements QueryParameter<T>
Constructor and Description |
---|
QueryParameterNamedImpl(java.lang.String name,
int[] sourceLocations,
boolean jpaStyle,
Type expectedType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName() |
java.lang.Integer |
getPosition() |
int[] |
getSourceLocations() |
int |
hashCode() |
boolean |
isJpaPositionalParameter()
JPA has a different definition of positional parameters than what legacy Hibernate HQL had.
|
getParameterType, getType
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getType
public QueryParameterNamedImpl(java.lang.String name, int[] sourceLocations, boolean jpaStyle, Type expectedType)
public java.lang.String getName()
getName
in interface javax.persistence.Parameter<T>
public java.lang.Integer getPosition()
getPosition
in interface javax.persistence.Parameter<T>
public int[] getSourceLocations()
public boolean isJpaPositionalParameter()
QueryParameter
isJpaPositionalParameter
in interface QueryParameter<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.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.