javax.persistence
Annotation Type StoredProcedureParameter


@Target(value={})
@Retention(value=RUNTIME)
public @interface StoredProcedureParameter

Specifies a parameter of a named stored procedure query. All parameters of a named stored procedure query must be specified.

Since:
Java Persistence 2.1
See Also:
StoredProcedureQuery, ParameterMode

Required Element Summary
 java.lang.Class type
          JDBC type of the paramter.
 
Optional Element Summary
 ParameterMode mode
          Specifies whether the parameter is an IN, INOUT, OUT, or REF_CURSOR parameter.
 java.lang.String name
          The name of the parameter as defined by the stored procedure in the database.
 

Element Detail

type

public abstract java.lang.Class type
JDBC type of the paramter.

name

public abstract java.lang.String name
The name of the parameter as defined by the stored procedure in the database.

Default:
""

mode

public abstract ParameterMode mode
Specifies whether the parameter is an IN, INOUT, OUT, or REF_CURSOR parameter.

Default:
javax.persistence.ParameterMode.IN