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>,ProcedureParameter<T>,ProcedureParameterImplementor<T>,QueryParameter<T>,QueryParameterImplementor<T>
public class ProcedureParameterImpl<T>
extends AbstractQueryParameter<T>
implements ProcedureParameterImplementor<T>
-
Constructor Summary
ConstructorsConstructorDescriptionProcedureParameterImpl(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 TypeMethodDescriptionbooleangetMode()Retrieves the parameter "mode".getName()inthashCode()toJdbcParameterRegistration(int startIndex, ProcedureCallImplementor<?> procedureCall) toString()Methods inherited from class org.hibernate.query.spi.AbstractQueryParameter
allowsMultiValuedBinding, applyAnticipatedType, disallowMultiValuedBinding, getHibernateTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.query.QueryParameter
allowsMultiValuedBinding, getHibernateType, isNamed, isOrdinalMethods 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:
getPositionin interfaceParameter<T>- Overrides:
getPositionin classAbstractQueryParameter<T>
-
getMode
Description copied from interface:ProcedureParameterRetrieves the parameter "mode". Only really pertinent in regards to procedure/function calls. In all other cases the mode would beParameterMode.IN- Specified by:
getModein interfaceProcedureParameter<T>- Returns:
- The parameter mode.
-
getParameterType
- Specified by:
getParameterTypein interfaceParameter<T>- Overrides:
getParameterTypein classAbstractQueryParameter<T>
-
toMemento
- Specified by:
toMementoin interfaceQueryParameterImplementor<T>
-
toJdbcParameterRegistration
public JdbcCallParameterRegistration toJdbcParameterRegistration(int startIndex, ProcedureCallImplementor<?> procedureCall) - Specified by:
toJdbcParameterRegistrationin interfaceProcedureParameterImplementor<T>
-
hashCode
public int hashCode() -
equals
-
toString
-