Top Description Fields Methods
org.hibernate.procedure

public Interface ProcedureCall

extends CommonQueryContract, SynchronizeableQuery, StoredProcedureQuery, NameableQuery, AutoCloseable
Known Direct Subinterfaces
org.hibernate.procedure.spi.ProcedureCallImplementor
Imports
java.util.Calendar, .Date, .List, jakarta.persistence.FlushModeType, .Parameter, .ParameterMode, .StoredProcedureQuery, .TemporalType, org.hibernate.MappingException, org.hibernate.query.SynchronizeableQuery, .CommonQueryContract, org.hibernate.procedure.spi.NamedCallableQueryMemento, org.hibernate.query.procedure.ProcedureParameter, org.hibernate.query.named.NameableQuery, org.hibernate.type.BasicTypeReference

Defines support for executing database stored procedures and functions.

Note that here we use the terms "procedure" and "function" as follows:

Unless explicitly specified, the ProcedureCall is assumed to follow the procedure call syntax. To explicitly specify that this should be a function call, use markAsFunctionCall. JPA users could either:

When using function-call syntax:

In some cases, based on the Dialect, we will have other validations and assumptions as well. For example, on PGSQL, whenever we see a REF_CURSOR mode parameter, we know that:

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String
FUNCTION_RETURN_TYPE_HINT

The hint key (for use with JPA's "hint system") indicating the function's return JDBC type code (aka, java.sql.Types code)

Method Summary

Modifier and TypeMethod and Description
public ProcedureCall
addSynchronizedEntityClass(Class<T>
The class of the entity.
entityClass
)

Redeclares org.hibernate.query.SynchronizeableQuery.addSynchronizedEntityClass.

Add all query spaces associated with the entity with the given type.
public ProcedureCall
addSynchronizedEntityName(String
The name of an entity.
entityName
)

Redeclares org.hibernate.query.SynchronizeableQuery.addSynchronizedEntityName.

Add all query spaces associated with the entity with the given names.
public ProcedureCall
addSynchronizedQuerySpace(String
The name of the query space, usually the name of a database table.
querySpace
)

Redeclares org.hibernate.query.SynchronizeableQuery.addSynchronizedQuerySpace.

Add a query space.
public default void
close()

Implements java.lang.AutoCloseable.close.

Release the underlying JDBC java.sql.CallableStatement
public ProcedureOutputs

Returns:

The ProcedureOutputs representation
getOutputs
()

Retrieves access to outputs of this procedure call.

public ProcedureParameter<T>

Returns:

The parameter registration memento
getParameterRegistration
(int
The parameter position
position
)

Retrieve a previously registered parameter memento by the position under which it was registered.

public ProcedureParameter<T>

Returns:

The parameter registration memento
getParameterRegistration
(String
The parameter name
name
)

Retrieve a previously registered parameter memento by the name under which it was registered.

public String

Returns:

The procedure name.
getProcedureName
()

Get the name of the stored procedure (or function) to be called.

public List<ProcedureParameter<T>>

Returns:

The (immutable) list of all registered parameters.
getRegisteredParameters
()

Retrieve all registered parameters.

public boolean

Returns:

true indicates that this ProcedureCall represents a function call; false indicates a procedure call.
isFunctionCall
()

Does this ProcedureCall represent a call to a database FUNCTION, as opposed to a PROCEDURE?

public ProcedureCall

Returns:

this, for method chaining
markAsFunctionCall
(int
The java.sql.Types code for the function return
sqlType
)

Mark this ProcedureCall as representing a call to a database function, rather than a database procedure.

public ProcedureCall

Returns:

this, for method chaining
markAsFunctionCall
(Class<?>
The result type for the function return
resultType
)

Mark this ProcedureCall as representing a call to a database function, rather than a database procedure.

public ProcedureCall

Returns:

this, for method chaining
markAsFunctionCall
(BasicTypeReference<?>
The result type for the function return
typeReference
)

Mark this ProcedureCall as representing a call to a database function, rather than a database procedure.

public <
The parameterized Java type of the parameter.
T
>
ProcedureParameter<T>

Returns:

The parameter registration memento
registerParameter
(int
The position
position
,
Class<T>
The Java type of the parameter
type
,
ParameterMode
The parameter mode (in, out, inout)
mode
)

Basic form for registering a positional parameter.

public <
The parameterized Java type of the parameter.
T
>
ProcedureParameter<T>

Returns:

The parameter registration memento
registerParameter
(int
The position
position
,
BasicTypeReference<T>
The type reference of the parameter type
type
,
ParameterMode
The parameter mode (in, out, inout)
mode
)

Basic form for registering a positional parameter.

public <
The parameterized Java type of the parameter.
T
>
ProcedureParameter<T>

Returns:

The parameter registration memento
registerParameter
(String
The parameter name
parameterName
,
Class<T>
The Java type of the parameter
type
,
ParameterMode
The parameter mode (in, out, inout)
mode
)

Basic form for registering a named parameter.

public <
The parameterized Java type of the parameter.
T
>
ProcedureParameter<T>

Returns:

The parameter registration memento
registerParameter
(String
The parameter name
parameterName
,
BasicTypeReference<T>
The type reference of the parameter type
type
,
ParameterMode
The parameter mode (in, out, inout)
mode
)

Basic form for registering a named parameter.

public ProcedureCall
registerStoredProcedureParameter(int position, BasicTypeReference<?> type, ParameterMode mode)

Like registerStoredProcedureParameter(int, Class, ParameterMode) but a basic type reference is given instead of a class for the parameter type.

public ProcedureCall
registerStoredProcedureParameter(String parameterName, BasicTypeReference<?> type, ParameterMode mode)

Like registerStoredProcedureParameter(String, Class, ParameterMode) but a basic type reference is given instead of a class for the parameter type.

public ProcedureCall
registerStoredProcedureParameter(int
parameter position
position
,
Class<T>
type of the parameter
type
,
ParameterMode
parameter mode
mode
)

Redeclares jakarta.persistence.StoredProcedureQuery.registerStoredProcedureParameter.

Register a positional parameter.
public ProcedureCall
registerStoredProcedureParameter(String
name of the parameter as registered or specified in metadata
parameterName
,
Class<T>
type of the parameter
type
,
ParameterMode
parameter mode
mode
)

Redeclares jakarta.persistence.StoredProcedureQuery.registerStoredProcedureParameter.

Register a named parameter.
public ProcedureCall
public ProcedureCall
setHint(String
name of the property or hint
hintName
,
Object
value for the property or hint
value
)

Redeclares org.hibernate.query.CommonQueryContract.setHint, jakarta.persistence.StoredProcedureQuery.setHint.

Set a hint.
public <T> ProcedureCall
setParameter(Parameter<T>
parameter object
param
,
T
parameter value
value
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind the value of a Parameter object.
public ProcedureCall
setParameter(Parameter<Calendar>
parameter object
param
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Calendar to a Parameter object.
public ProcedureCall
setParameter(Parameter<Date>
parameter object
param
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Date to a Parameter object.
public ProcedureCall
setParameter(String
parameter name
name
,
Object
parameter value
value
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind the given argument to a named query parameter.
public ProcedureCall
setParameter(String
parameter name
name
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Calendar to a named parameter.
public ProcedureCall
setParameter(String
parameter name
name
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Date to a named parameter.
public ProcedureCall
setParameter(int
position
position
,
Object
parameter value
value
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind the given argument to an ordinal query parameter.
public ProcedureCall
setParameter(int
position
position
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Calendar to a positional parameter.
public ProcedureCall
setParameter(int
position
position
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Date to a positional parameter.
public NamedCallableQueryMemento
toMemento(String name)

Redeclares org.hibernate.query.named.NameableQuery.toMemento.

Convert the query into the memento
Inherited from jakarta.persistence.StoredProcedureQuery:
executeexecuteUpdategetOutputParameterValuegetOutputParameterValuegetResultListgetSingleResultgetUpdateCounthasMoreResults
Inherited from org.hibernate.query.CommonQueryContract:
getCommentgetFlushModegetHibernateFlushModegetTimeoutsetCommentsetHibernateFlushModesetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParametersetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetParameterListsetPropertiessetPropertiessetTimeout
Inherited from org.hibernate.query.SynchronizeableQuery:
getSynchronizedQuerySpaces

Field Detail

FUNCTION_RETURN_TYPE_HINTback to summary
public static final String FUNCTION_RETURN_TYPE_HINT

The hint key (for use with JPA's "hint system") indicating the function's return JDBC type code (aka, java.sql.Types code)

Method Detail

addSynchronizedEntityClassback to summary
public ProcedureCall addSynchronizedEntityClass(Class<T> entityClass) throws MappingException

Redeclares org.hibernate.query.SynchronizeableQuery.addSynchronizedEntityClass.

Doc from org.hibernate.query.SynchronizeableQuery.addSynchronizedEntityClass.

Add all query spaces associated with the entity with the given type.

Same as addSynchronizedQuerySpace for all tables mapped by the given entity.

Parameters
entityClass:Class<T>

The class of the entity.

Returns:ProcedureCall

this, for method chaining

Annotations
@Override
@SuppressWarnings:rawtypes
Exceptions
MappingException:
Indicates the given class could not be resolved as an entity
addSynchronizedEntityNameback to summary
public ProcedureCall addSynchronizedEntityName(String entityName) throws MappingException

Redeclares org.hibernate.query.SynchronizeableQuery.addSynchronizedEntityName.

Doc from org.hibernate.query.SynchronizeableQuery.addSynchronizedEntityName.

Add all query spaces associated with the entity with the given names.

Same as addSynchronizedQuerySpace for all tables mapped by the given entity.

Parameters
entityName:String

The name of an entity.

Returns:ProcedureCall

this, for method chaining

Annotations
@Override
Exceptions
MappingException:
Indicates the given name could not be resolved as an entity
addSynchronizedQuerySpaceback to summary
public ProcedureCall addSynchronizedQuerySpace(String querySpace)

Redeclares org.hibernate.query.SynchronizeableQuery.addSynchronizedQuerySpace.

Doc from org.hibernate.query.SynchronizeableQuery.addSynchronizedQuerySpace.

Add a query space. The effect of this call is to:

  • force an auto-flush if any entity associated with the current session and mapped to the given query space has pending changes which have not yet been synchronized with the database, and
  • if the result set of this query is cached, mark it for invalidation when any entity mapped to the given query space is synchronized with the database in any session.
Parameters
querySpace:String

The name of the query space, usually the name of a database table.

Returns:ProcedureCall

this, for method chaining

Annotations
@Override
closeback to summary
public default void close()

Implements java.lang.AutoCloseable.close.

Release the underlying JDBC java.sql.CallableStatement

Annotations
@Override
getOutputsback to summary
public ProcedureOutputs getOutputs()

Retrieves access to outputs of this procedure call. Can be called multiple times, returning the same ProcedureOutputs instance each time.

If the procedure call has not actually be executed yet, it will be executed and then the ProcedureOutputs will be returned.

Returns:ProcedureOutputs

The ProcedureOutputs representation

getParameterRegistrationback to summary
public ProcedureParameter<T> getParameterRegistration(int position)

Retrieve a previously registered parameter memento by the position under which it was registered.

Parameters
position:int

The parameter position

Returns:ProcedureParameter<T>

The parameter registration memento

Exceptions
ParameterStrategyException:
If the ProcedureCall is defined using named parameters
NoSuchParameterException:
If no parameter with that position exists
getParameterRegistrationback to summary
public ProcedureParameter<T> getParameterRegistration(String name)

Retrieve a previously registered parameter memento by the name under which it was registered.

Parameters
name:String

The parameter name

Returns:ProcedureParameter<T>

The parameter registration memento

Exceptions
ParameterStrategyException:
If the ProcedureCall is defined using positional parameters
NoSuchParameterException:
If no parameter with that name exists
getProcedureNameback to summary
public String getProcedureName()

Get the name of the stored procedure (or function) to be called.

Returns:String

The procedure name.

getRegisteredParametersback to summary
public List<ProcedureParameter<T>> getRegisteredParameters()

Retrieve all registered parameters.

Returns:List<ProcedureParameter<T>>

The (immutable) list of all registered parameters.

isFunctionCallback to summary
public boolean isFunctionCall()

Does this ProcedureCall represent a call to a database FUNCTION, as opposed to a PROCEDURE?

API Note

this will only report whether this ProcedureCall was marked as a function via call to markAsFunctionCall. In particular, it will not return true when using JPA query hint.

Returns:boolean

true indicates that this ProcedureCall represents a function call; false indicates a procedure call.

markAsFunctionCallback to summary
public ProcedureCall markAsFunctionCall(int sqlType)

Mark this ProcedureCall as representing a call to a database function, rather than a database procedure.

Parameters
sqlType:int

The java.sql.Types code for the function return

Returns:ProcedureCall

this, for method chaining

markAsFunctionCallback to summary
public ProcedureCall markAsFunctionCall(Class<?> resultType)

Mark this ProcedureCall as representing a call to a database function, rather than a database procedure.

Parameters
resultType:Class<?>

The result type for the function return

Returns:ProcedureCall

this, for method chaining

Since
6.2
markAsFunctionCallback to summary
public ProcedureCall markAsFunctionCall(BasicTypeReference<?> typeReference)

Mark this ProcedureCall as representing a call to a database function, rather than a database procedure.

Parameters
typeReference:BasicTypeReference<?>

The result type for the function return

Returns:ProcedureCall

this, for method chaining

Since
6.2
registerParameterback to summary
public <T> ProcedureParameter<T> registerParameter(int position, Class<T> type, ParameterMode mode)

Basic form for registering a positional parameter.

Parameters
<T>
The parameterized Java type of the parameter.
position:int

The position

type:Class<T>

The Java type of the parameter

mode:ParameterMode

The parameter mode (in, out, inout)

Returns:ProcedureParameter<T>

The parameter registration memento

registerParameterback to summary
public <T> ProcedureParameter<T> registerParameter(int position, BasicTypeReference<T> type, ParameterMode mode)

Basic form for registering a positional parameter.

Parameters
<T>
The parameterized Java type of the parameter.
position:int

The position

type:BasicTypeReference<T>

The type reference of the parameter type

mode:ParameterMode

The parameter mode (in, out, inout)

Returns:ProcedureParameter<T>

The parameter registration memento

registerParameterback to summary
public <T> ProcedureParameter<T> registerParameter(String parameterName, Class<T> type, ParameterMode mode) throws NamedParametersNotSupportedException

Basic form for registering a named parameter.

Parameters
<T>
The parameterized Java type of the parameter.
parameterName:String

The parameter name

type:Class<T>

The Java type of the parameter

mode:ParameterMode

The parameter mode (in, out, inout)

Returns:ProcedureParameter<T>

The parameter registration memento

Exceptions
NamedParametersNotSupportedException:
When the underlying database is known to not support named procedure parameters.
registerParameterback to summary
public <T> ProcedureParameter<T> registerParameter(String parameterName, BasicTypeReference<T> type, ParameterMode mode) throws NamedParametersNotSupportedException

Basic form for registering a named parameter.

Parameters
<T>
The parameterized Java type of the parameter.
parameterName:String

The parameter name

type:BasicTypeReference<T>

The type reference of the parameter type

mode:ParameterMode

The parameter mode (in, out, inout)

Returns:ProcedureParameter<T>

The parameter registration memento

Exceptions
NamedParametersNotSupportedException:
When the underlying database is known to not support named procedure parameters.
registerStoredProcedureParameterback to summary
public ProcedureCall registerStoredProcedureParameter(int position, BasicTypeReference<?> type, ParameterMode mode)

Like registerStoredProcedureParameter(int, Class, ParameterMode) but a basic type reference is given instead of a class for the parameter type.

registerStoredProcedureParameterback to summary
public ProcedureCall registerStoredProcedureParameter(String parameterName, BasicTypeReference<?> type, ParameterMode mode)

Like registerStoredProcedureParameter(String, Class, ParameterMode) but a basic type reference is given instead of a class for the parameter type.

registerStoredProcedureParameterback to summary
public ProcedureCall registerStoredProcedureParameter(int position, Class<T> type, ParameterMode mode)

Redeclares jakarta.persistence.StoredProcedureQuery.registerStoredProcedureParameter.

Doc from jakarta.persistence.StoredProcedureQuery.registerStoredProcedureParameter.

Register a positional parameter. All parameters must be registered.

Parameters
position:int

parameter position

type:Class<T>

type of the parameter

mode:ParameterMode

parameter mode

Returns:ProcedureCall

the same query instance

Annotations
@Override
registerStoredProcedureParameterback to summary
public ProcedureCall registerStoredProcedureParameter(String parameterName, Class<T> type, ParameterMode mode)

Redeclares jakarta.persistence.StoredProcedureQuery.registerStoredProcedureParameter.

Doc from jakarta.persistence.StoredProcedureQuery.registerStoredProcedureParameter.

Register a named parameter.

Parameters
parameterName:String

name of the parameter as registered or specified in metadata

type:Class<T>

type of the parameter

mode:ParameterMode

parameter mode

Returns:ProcedureCall

the same query instance

Annotations
@Override
setFlushModeback to summary
public ProcedureCall setFlushMode(FlushModeType flushMode)

Redeclares org.hibernate.query.CommonQueryContract.setFlushMode, jakarta.persistence.StoredProcedureQuery.setFlushMode.

Doc from org.hibernate.query.CommonQueryContract.setFlushMode.

Set the FlushMode in to use for this query.

Parameters
flushMode:FlushModeType

Doc from jakarta.persistence.StoredProcedureQuery.setFlushMode.

flush mode

Returns:ProcedureCall

Doc from jakarta.persistence.StoredProcedureQuery.setFlushMode.

the same query instance

Annotations
@Override
setHintback to summary
public ProcedureCall setHint(String hintName, Object value)

Redeclares org.hibernate.query.CommonQueryContract.setHint, jakarta.persistence.StoredProcedureQuery.setHint.

Doc from org.hibernate.query.CommonQueryContract.setHint.

Set a hint. The hints understood by Hibernate are enumerated by org.hibernate.jpa.AvailableHints.

Parameters
hintName:String

Doc from jakarta.persistence.StoredProcedureQuery.setHint.

name of the property or hint

value:Object

Doc from jakarta.persistence.StoredProcedureQuery.setHint.

value for the property or hint

Returns:ProcedureCall

Doc from jakarta.persistence.StoredProcedureQuery.setHint.

the same query instance

Annotations
@Override
setParameterback to summary
public <T> ProcedureCall setParameter(Parameter<T> param, T value)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

Bind the value of a Parameter object.

Parameters
param:Parameter<T>

parameter object

value:T

parameter value

Returns:ProcedureCall

the same query instance

Annotations
@Override
setParameterback to summary
public ProcedureCall setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Calendar to a Parameter object.

Parameters
param:Parameter<Calendar>

parameter object

value:Calendar

parameter value

temporalType:TemporalType

temporal type

Returns:ProcedureCall

the same query instance

Annotations
@Override
setParameterback to summary
public ProcedureCall setParameter(Parameter<Date> param, Date value, TemporalType temporalType)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Date to a Parameter object.

Parameters
param:Parameter<Date>

parameter object

value:Date

parameter value

temporalType:TemporalType

temporal type

Returns:ProcedureCall

the same query instance

Annotations
@Override
setParameterback to summary
public ProcedureCall setParameter(String name, Object value)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from org.hibernate.query.CommonQueryContract.setParameter.

Bind the given argument to a named query parameter.

If the type of the parameter cannot be inferred from the context in which it occurs, use one of the forms which accepts a "type".

Parameters
name:String

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

parameter name

value:Object

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

parameter value

Returns:ProcedureCall

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

the same query instance

Annotations
@Override
setParameterback to summary
public ProcedureCall setParameter(String name, Calendar value, TemporalType temporalType)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Calendar to a named parameter.

Parameters
name:String

parameter name

value:Calendar

parameter value

temporalType:TemporalType

temporal type

Returns:ProcedureCall

the same query instance

Annotations
@Override
setParameterback to summary
public ProcedureCall setParameter(String name, Date value, TemporalType temporalType)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Date to a named parameter.

Parameters
name:String

parameter name

value:Date

parameter value

temporalType:TemporalType

temporal type

Returns:ProcedureCall

the same query instance

Annotations
@Override
setParameterback to summary
public ProcedureCall setParameter(int position, Object value)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from org.hibernate.query.CommonQueryContract.setParameter.

Bind the given argument to an ordinal query parameter.

If the type of the parameter cannot be inferred from the context in which it occurs, use one of the forms which accepts a "type".

Parameters
position:int

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

position

value:Object

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

parameter value

Returns:ProcedureCall

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

the same query instance

Annotations
@Override
setParameterback to summary
public ProcedureCall setParameter(int position, Calendar value, TemporalType temporalType)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Calendar to a positional parameter.

Parameters
position:int

position

value:Calendar

parameter value

temporalType:TemporalType

temporal type

Returns:ProcedureCall

the same query instance

Annotations
@Override
setParameterback to summary
public ProcedureCall setParameter(int position, Date value, TemporalType temporalType)

Redeclares org.hibernate.query.CommonQueryContract.setParameter, jakarta.persistence.StoredProcedureQuery.setParameter.

Doc from jakarta.persistence.StoredProcedureQuery.setParameter.

Bind an instance of java.util.Date to a positional parameter.

Parameters
position:int

position

value:Date

parameter value

temporalType:TemporalType

temporal type

Returns:ProcedureCall

the same query instance

Annotations
@Override
toMementoback to summary
public NamedCallableQueryMemento toMemento(String name)

Redeclares org.hibernate.query.named.NameableQuery.toMemento.

Doc from org.hibernate.query.named.NameableQuery.toMemento.

Convert the query into the memento

Annotations
@Override