Package org.hibernate.procedure.internal
Class FunctionReturnImpl<T>
java.lang.Object
org.hibernate.procedure.internal.FunctionReturnImpl<T>
- All Implemented Interfaces:
Parameter<T>,FunctionReturn<T>,ProcedureParameter<T>,FunctionReturnImplementor<T>,ProcedureParameterImplementor<T>,QueryParameter<T>,QueryParameterImplementor<T>
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionReturnImpl(ProcedureCallImplementor<T> procedureCall, int sqlTypeCode) FunctionReturnImpl(ProcedureCallImplementor<T> procedureCall, OutputableType<T> ormType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes this parameter allow multi-valued (collection, array, etc) binding?voidapplyAnticipatedType(BindableType<?> type) voidGet the Hibernate Type associated with this parameter, if one.intThe JDBC type code representing the SQL type of the function return value.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, waitMethods inherited from interface org.hibernate.procedure.spi.FunctionReturnImplementor
toJdbcParameterRegistrationMethods inherited from interface org.hibernate.query.QueryParameter
isNamed, isOrdinal
-
Constructor Details
-
FunctionReturnImpl
-
FunctionReturnImpl
-
-
Method Details
-
getJdbcTypeCode
public int getJdbcTypeCode()Description copied from interface:FunctionReturnThe JDBC type code representing the SQL type of the function return value.- Specified by:
getJdbcTypeCodein interfaceFunctionReturn<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.
-
getName
-
getPosition
- Specified by:
getPositionin interfaceParameter<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>
-
disallowMultiValuedBinding
public void disallowMultiValuedBinding()- Specified by:
disallowMultiValuedBindingin interfaceQueryParameterImplementor<T>
-
applyAnticipatedType
- 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
- Specified by:
toMementoin interfaceQueryParameterImplementor<T>