Package org.hibernate.procedure.internal
Class FunctionReturnImpl<T>
java.lang.Object
org.hibernate.procedure.internal.FunctionReturnImpl<T>
- All Implemented Interfaces:
Parameter<T>
,FunctionReturn<T>
,FunctionReturnImplementor<T>
,ProcedureParameterImplementor<T>
,ProcedureParameter<T>
,QueryParameter<T>
,QueryParameterImplementor<T>
-
Constructor Summary
ConstructorDescriptionFunctionReturnImpl
(ProcedureCallImplementor<T> procedureCall, int sqlTypeCode) FunctionReturnImpl
(ProcedureCallImplementor<T> procedureCall, OutputableType<T> ormType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Does this parameter allow multi-valued (collection, array, etc) binding?void
void
Get the Hibernate Type associated with this parameter, if one.int
getMode()
Retrieves the parameter "mode".getName()
toJdbcFunctionReturn
(SharedSessionContractImplementor persistenceContext) 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 Details
-
FunctionReturnImpl
-
FunctionReturnImpl
-
-
Method Details
-
getJdbcTypeCode
public int getJdbcTypeCode()- Specified by:
getJdbcTypeCode
in interfaceFunctionReturn<T>
-
getHibernateType
Description copied from interface:QueryParameter
Get the Hibernate Type associated with this parameter, if one. May returnnull
.- Specified by:
getHibernateType
in interfaceQueryParameter<T>
- Returns:
- The associated Hibernate Type, may be
null
.
-
getName
-
getPosition
- Specified by:
getPosition
in interfaceParameter<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>
-
disallowMultiValuedBinding
public void disallowMultiValuedBinding()- Specified by:
disallowMultiValuedBinding
in interfaceQueryParameterImplementor<T>
-
applyAnticipatedType
- Specified by:
applyAnticipatedType
in interfaceQueryParameterImplementor<T>
-
allowsMultiValuedBinding
public boolean allowsMultiValuedBinding()Description copied from interface:QueryParameter
Does 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:
allowsMultiValuedBinding
in interfaceQueryParameter<T>
- Returns:
true
indicates that multi-valued binding is allowed for this parameter
-
toMemento
- Specified by:
toMemento
in interfaceQueryParameterImplementor<T>