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, getTypeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetTypepublic 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()
QueryParameterisJpaPositionalParameter 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.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.