public class ProcedureParameterImpl<T> extends QueryParameterImpl<T> implements ProcedureParameterImplementor<T>
Constructor and Description |
---|
ProcedureParameterImpl(ParameterRegistrationImplementor<T> nativeParamRegistration) |
Modifier and Type | Method and Description |
---|---|
void |
enablePassingNulls(boolean enabled)
Controls how unbound values for this IN/INOUT parameter registration will be handled prior to
execution.
|
javax.persistence.ParameterMode |
getMode()
Retrieves the parameter "mode".
|
java.lang.String |
getName() |
ParameterRegistrationImplementor<T> |
getNativeParameterRegistration() |
java.lang.Integer |
getPosition() |
boolean |
isJpaPositionalParameter()
JPA has a different definition of positional parameters than what legacy Hibernate HQL had.
|
boolean |
isPassNullsEnabled()
How will an unbound value be handled in terms of the JDBC parameter?
|
getParameterType, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType
public ProcedureParameterImpl(ParameterRegistrationImplementor<T> nativeParamRegistration)
public javax.persistence.ParameterMode getMode()
ProcedureParameter
ParameterMode.IN
getMode
in interface ProcedureParameter<T>
public boolean isPassNullsEnabled()
ProcedureParameter
isPassNullsEnabled
in interface ProcedureParameter<T>
true
here indicates that NULL should be passed; false
indicates
that it is ignored.ParameterRegistrationImplementor.isPassNullsEnabled()
public void enablePassingNulls(boolean enabled)
ProcedureParameter
ParameterRegistration.enablePassingNulls(boolean)
enablePassingNulls
in interface ProcedureParameter<T>
enabled
- true
indicates that the NULL should be passed; false
indicates it should not.ParameterRegistration.enablePassingNulls(boolean)
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 java.lang.String getName()
getName
in interface javax.persistence.Parameter<T>
public java.lang.Integer getPosition()
getPosition
in interface javax.persistence.Parameter<T>
public ParameterRegistrationImplementor<T> getNativeParameterRegistration()
getNativeParameterRegistration
in interface ProcedureParameterImplementor<T>
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.