Package org.hibernate.procedure.internal
Class FunctionReturnImpl<T>
- java.lang.Object
-
- org.hibernate.procedure.internal.FunctionReturnImpl<T>
-
- All Implemented Interfaces:
jakarta.persistence.Parameter<T>,FunctionReturn<T>,FunctionReturnImplementor<T>,ProcedureParameterImplementor<T>,ProcedureParameter<T>,QueryParameter<T>,QueryParameterImplementor<T>
public class FunctionReturnImpl<T> extends Object implements FunctionReturnImplementor<T>
-
-
Constructor Summary
Constructors Constructor Description FunctionReturnImpl(ProcedureCallImplementor<T> procedureCall, int sqlTypeCode)FunctionReturnImpl(ProcedureCallImplementor<T> procedureCall, OutputableType<T> ormType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsMultiValuedBinding()Does this parameter allow multi-valued (collection, array, etc) binding?voidapplyAnticipatedType(BindableType type)voiddisallowMultiValuedBinding()BindableType<T>getHibernateType()Get the Hibernate Type associated with this parameter, if one.intgetJdbcTypeCode()jakarta.persistence.ParameterModegetMode()Retrieves the parameter "mode".StringgetName()ClassgetParameterType()IntegergetPosition()JdbcCallFunctionReturntoJdbcFunctionReturn(SharedSessionContractImplementor persistenceContext)NamedCallableQueryMemento.ParameterMementotoMemento()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.procedure.spi.FunctionReturnImplementor
toJdbcParameterRegistration
-
-
-
-
Constructor Detail
-
FunctionReturnImpl
public FunctionReturnImpl(ProcedureCallImplementor<T> procedureCall, int sqlTypeCode)
-
FunctionReturnImpl
public FunctionReturnImpl(ProcedureCallImplementor<T> procedureCall, OutputableType<T> ormType)
-
-
Method Detail
-
toJdbcFunctionReturn
public JdbcCallFunctionReturn toJdbcFunctionReturn(SharedSessionContractImplementor persistenceContext)
- Specified by:
toJdbcFunctionReturnin interfaceFunctionReturnImplementor<T>
-
getJdbcTypeCode
public int getJdbcTypeCode()
- Specified by:
getJdbcTypeCodein interfaceFunctionReturn<T>
-
getHibernateType
public BindableType<T> getHibernateType()
Description copied from interface:QueryParameterGet the Hibernate Type associated with this parameter, if one. May returnnull.- Specified by:
getHibernateTypein interfaceQueryParameter<T>- Returns:
- The associated Hibernate Type, may be
null.
-
getPosition
public Integer getPosition()
- Specified by:
getPositionin interfacejakarta.persistence.Parameter<T>
-
getMode
public jakarta.persistence.ParameterMode 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
public Class getParameterType()
- Specified by:
getParameterTypein interfacejakarta.persistence.Parameter<T>
-
disallowMultiValuedBinding
public void disallowMultiValuedBinding()
- Specified by:
disallowMultiValuedBindingin interfaceQueryParameterImplementor<T>
-
applyAnticipatedType
public void applyAnticipatedType(BindableType type)
- Specified by:
applyAnticipatedTypein interfaceQueryParameterImplementor<T>
-
allowsMultiValuedBinding
public boolean allowsMultiValuedBinding()
Description copied from interface:QueryParameterDoes this parameter allow multi-valued (collection, array, etc) binding?This is only valid for HQL/JPQL and (I think) Criteria queries, and is determined based on the context of the parameters declaration.
- Specified by:
allowsMultiValuedBindingin interfaceQueryParameter<T>- Returns:
trueindicates that multi-valued binding is allowed for this parameter
-
toMemento
public NamedCallableQueryMemento.ParameterMemento toMemento()
- Specified by:
toMementoin interfaceQueryParameterImplementor<T>
-
-