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>
- Author:
- Steve Ebersole
-
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()Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned.Return the Java type of the parameter.Return the parameter position, or null if the parameter is not a positional parameter.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, getHibernateTypeMethods 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
Description copied from interface:ParameterReturn the parameter name, or null if the parameter is not a named parameter or no name has been assigned. -
getPosition
Description copied from interface:ParameterReturn the parameter position, or null if the parameter is not a positional parameter.- Specified by:
getPositionin interfaceParameter<T>- Overrides:
getPositionin classAbstractQueryParameter<T>- Returns:
- position of parameter
-
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
Description copied from interface:ParameterReturn the Java type of the parameter. Values bound to the parameter must be assignable to this type. This method is required to be supported for criteria queries only. Applications that use this method for Jakarta Persistence query language queries and native queries will not be portable.- Specified by:
getParameterTypein interfaceParameter<T>- Overrides:
getParameterTypein classAbstractQueryParameter<T>- Returns:
- the Java type of the parameter
-
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
-