Annotation Type StoredProcedureParameter


  • @Target({})
    @Retention(RUNTIME)
    public @interface StoredProcedureParameter
    Specifies a parameter of a named stored procedure query. All parameters of a named stored procedure query must be specified.
    See Also:
    NamedStoredProcedureQuery, ParameterMode
    Since:
    2.1
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class type
      JDBC type of the paramter.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      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

        java.lang.Class type
        JDBC type of the paramter.
      • name

        java.lang.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.
        Default:
        ""
      • mode

        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.
        Default:
        javax.persistence.ParameterMode.IN