public interface ParameterRegistration<T>
Modifier and Type | Method and Description |
---|---|
void |
bindValue(T value)
Bind a value to the parameter.
|
void |
bindValue(T value,
TemporalType explicitTemporalType)
Bind a value to the parameter, using just a specified portion of the DATE/TIME value.
|
ParameterBind<T> |
getBind()
Retrieve the binding associated with this parameter.
|
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).
|
String |
getName()
The name under which this parameter was registered.
|
Integer |
getPosition()
The position at which this parameter was registered.
|
Class<T> |
getType()
Obtain the Java type of parameter.
|
void |
setHibernateType(Type type)
Set the Hibernate mapping type for this parameter.
|
String getName()
null
which should indicate that
positional registration was used (and therefore getPosition()
should return non-null.Integer getPosition()
null
which should indicate that
named registration was used (and therefore getName()
should return non-null.Class<T> getType()
setHibernateType(org.hibernate.type.Type)
is called explicitly).ParameterMode getMode()
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, TemporalType explicitTemporalType)
value
- The value to bindexplicitTemporalType
- An explicitly supplied TemporalType.Copyright © 2016 JBoss by Red Hat. All rights reserved.