接口 ProcedureCall

    • 方法详细资料

      • getProcedureName

        String getProcedureName()
        Get the name of the stored procedure to be called.
        返回:
        The procedure name.
      • registerParameter

        <T> ParameterRegistration<T> registerParameter​(int position,
                                                       Class<T> type,
                                                       javax.persistence.ParameterMode mode)
        Basic form for registering a positional parameter.
        类型参数:
        T - The parameterized Java type of the parameter.
        参数:
        position - The position
        type - The Java type of the parameter
        mode - The parameter mode (in, out, inout)
        返回:
        The parameter registration memento
      • getParameterRegistration

        ParameterRegistration getParameterRegistration​(int position)
        Retrieve a previously registered parameter memento by the position under which it was registered.
        参数:
        position - The parameter position
        返回:
        The parameter registration memento
        抛出:
        ParameterStrategyException - If the ProcedureCall is defined using named parameters
        NoSuchParameterException - If no parameter with that position exists
      • registerParameter

        <T> ParameterRegistration<T> registerParameter​(String parameterName,
                                                       Class<T> type,
                                                       javax.persistence.ParameterMode mode)
                                                throws NamedParametersNotSupportedException
        Basic form for registering a named parameter.
        类型参数:
        T - The parameterized Java type of the parameter.
        参数:
        parameterName - The parameter name
        type - The Java type of the parameter
        mode - The parameter mode (in, out, inout)
        返回:
        The parameter registration memento
        抛出:
        NamedParametersNotSupportedException - When the underlying database is known to not support named procedure parameters.
      • getParameterRegistration

        ParameterRegistration getParameterRegistration​(String name)
        Retrieve a previously registered parameter memento by the name under which it was registered.
        参数:
        name - The parameter name
        返回:
        The parameter registration memento
        抛出:
        ParameterStrategyException - If the ProcedureCall is defined using positional parameters
        NoSuchParameterException - If no parameter with that name exists
      • getRegisteredParameters

        List<ParameterRegistration> getRegisteredParameters()
        Retrieve all registered parameters.
        返回:
        The (immutable) list of all registered parameters.
      • getOutputs

        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.

        返回:
        The ProcedureOutputs representation
      • extractMemento

        ProcedureCallMemento extractMemento​(Map<String,​Object> hints)
        Extract the disconnected representation of this call. Used in HEM to allow redefining a named query
        参数:
        hints - The hints to incorporate into the memento
        返回:
        The memento
      • extractMemento

        ProcedureCallMemento extractMemento()
        Extract the disconnected representation of this call. Used in HEM to allow redefining a named query *
        返回:
        The memento