Top Description Methods
org.hibernate.query

public Interface QueryParameter<T>

extends Parameter<T>
Known Direct Subinterfaces
org.hibernate.query.procedure.ProcedureParameter, org.hibernate.query.spi.QueryParameterImplementor
Known Direct Implementers
org.hibernate.engine.query.spi.AbstractParameterDescriptor
Annotations
@Incubating
Imports
org.hibernate.Incubating

Represents a parameter defined in the source (HQL/JPQL or criteria) query.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true indicates that multi-valued binding is allowed for this parameter
allowsMultiValuedBinding
()

Does this parameter allow multi-valued (collection, array, etc) binding?

public BindableType<T>

Returns:

The associated Hibernate Type, may be null.
getHibernateType
()

Get the Hibernate Type associated with this parameter, if one.

Inherited from jakarta.persistence.Parameter:
getNamegetParameterTypegetPosition

Method Detail

allowsMultiValuedBindingback to summary
public boolean allowsMultiValuedBinding()

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.

Returns:boolean

true indicates that multi-valued binding is allowed for this parameter

getHibernateTypeback to summary
public BindableType<T> getHibernateType()

Get the Hibernate Type associated with this parameter, if one. May return null.

Returns:BindableType<T>

The associated Hibernate Type, may be null.