Package org.hibernate.procedure.internal
Class ProcedureParameterImpl<T>
java.lang.Object
org.hibernate.query.spi.AbstractQueryParameter<T>
org.hibernate.procedure.internal.ProcedureParameterImpl<T>
- All Implemented Interfaces:
Parameter<T>
,ProcedureParameterImplementor<T>
,ProcedureParameter<T>
,QueryParameter<T>
,QueryParameterImplementor<T>
public class ProcedureParameterImpl<T>
extends AbstractQueryParameter<T>
implements ProcedureParameterImplementor<T>
-
Constructor Summary
ConstructorDescriptionProcedureParameterImpl
(Integer position, ParameterMode mode, Class<T> javaType, BindableType<T> hibernateType) Used for ordinal Query parametersProcedureParameterImpl
(String name, ParameterMode mode, Class<T> javaType, BindableType<T> hibernateType) Used for named Query parameters -
Method Summary
Modifier and TypeMethodDescriptionboolean
getMode()
Retrieves the parameter "mode".getName()
int
hashCode()
toJdbcParameterRegistration
(int startIndex, ProcedureCallImplementor<?> procedureCall) toString()
Methods inherited from class org.hibernate.query.spi.AbstractQueryParameter
allowsMultiValuedBinding, applyAnticipatedType, disallowMultiValuedBinding, getHibernateType
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.query.QueryParameter
allowsMultiValuedBinding, getHibernateType
Methods inherited from interface org.hibernate.query.spi.QueryParameterImplementor
applyAnticipatedType, disallowMultiValuedBinding
-
Constructor Details
-
ProcedureParameterImpl
public ProcedureParameterImpl(String name, ParameterMode mode, Class<T> javaType, BindableType<T> hibernateType) Used for named Query parameters -
ProcedureParameterImpl
public ProcedureParameterImpl(Integer position, ParameterMode mode, Class<T> javaType, BindableType<T> hibernateType) Used for ordinal Query parameters
-
-
Method Details
-
getName
-
getPosition
- Specified by:
getPosition
in interfaceParameter<T>
- Overrides:
getPosition
in classAbstractQueryParameter<T>
-
getMode
Description copied from interface:ProcedureParameter
Retrieves the parameter "mode". Only really pertinent in regards to procedure/function calls. In all other cases the mode would beParameterMode.IN
- Specified by:
getMode
in interfaceProcedureParameter<T>
- Returns:
- The parameter mode.
-
getParameterType
- Specified by:
getParameterType
in interfaceParameter<T>
- Overrides:
getParameterType
in classAbstractQueryParameter<T>
-
toMemento
- Specified by:
toMemento
in interfaceQueryParameterImplementor<T>
-
toJdbcParameterRegistration
public JdbcCallParameterRegistration toJdbcParameterRegistration(int startIndex, ProcedureCallImplementor<?> procedureCall) - Specified by:
toJdbcParameterRegistration
in interfaceProcedureParameterImplementor<T>
-
hashCode
public int hashCode() -
equals
-
toString
-