Top Description Methods
jakarta.persistence

public @Interface StoredProcedureParameter

extends Annotation
Annotations
@Target
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention

Declares a parameter of a named stored procedure query. All parameters of a named stored procedure query must be declared.
Since
2.1
See Also
NamedStoredProcedureQuery, ParameterMode

Method Summary

Modifier and TypeMethod and Description
public ParameterMode
mode()

Specifies whether the parameter is an IN, INOUT, OUT, or REF_CURSOR parameter.

public String
name()

The name of the parameter as defined by the stored procedure in the database.

public Class<?>
type()

JDBC type of the parameter.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

modeback to summary
public ParameterMode mode()

Specifies whether the parameter is an IN, INOUT, OUT, or REF_CURSOR parameter. REF_CURSOR parameters are used by some databases to return result sets from a stored procedure.

nameback to summary
public String name()

The name of the parameter as defined by the stored procedure in the database. If a name is not specified, it is assumed that the stored procedure uses positional parameters.

typeback to summary
public Class<?> type()

JDBC type of the parameter.