public interface ParameterRegistration<T>
Modifier and Type | Method and Description |
---|---|
void |
bindValue(T value)
Bind a value to the parameter.
|
void |
bindValue(T value,
javax.persistence.TemporalType explicitTemporalType)
Bind a value to the parameter, using just a specified portion of the DATE/TIME value.
|
void |
enablePassingNulls(boolean enabled)
Controls how unbound values for this IN/INOUT parameter registration will be handled prior to
execution.
|
ParameterBind<T> |
getBind()
Retrieve the binding associated with this parameter.
|
javax.persistence.ParameterMode |
getMode()
Retrieves the parameter "mode" which describes how the parameter is defined in the actual database procedure
definition (is it an INPUT parameter? An OUTPUT parameter? etc).
|
java.lang.String |
getName()
The name under which this parameter was registered.
|
java.lang.Integer |
getPosition()
The position at which this parameter was registered.
|
java.lang.Class<T> |
getType()
Obtain the Java type of parameter.
|
void |
setHibernateType(Type type)
Set the Hibernate mapping type for this parameter.
|
java.lang.String getName()
null
which should indicate that
positional registration was used (and therefore getPosition()
should return non-null.java.lang.Integer getPosition()
null
which should indicate that
named registration was used (and therefore getName()
should return non-null.java.lang.Class<T> getType()
setHibernateType(org.hibernate.type.Type)
is called explicitly).javax.persistence.ParameterMode getMode()
void enablePassingNulls(boolean enabled)
AvailableSettings.PROCEDURE_NULL_PARAM_PASSING
enabled
- true
indicates that the NULL should be passed; false
indicates it should not.void setHibernateType(Type type)
type
- The Hibernate mapping type.ParameterBind<T> getBind()
null
if nothing has been bound yet. To bind a value to the parameter use one of the
bindValue(T)
methods.void bindValue(T value)
value
- The value to bind.void bindValue(T value, javax.persistence.TemporalType explicitTemporalType)
value
- The value to bindexplicitTemporalType
- An explicitly supplied TemporalType.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.