Interface ProcedureCall

    • Method Detail

      • getProcedureName

        java.lang.String getProcedureName()
        Get the name of the stored procedure to be called.
        Returns:
        The procedure name.
      • registerParameter

        <T> ParameterRegistration<T> registerParameter​(int position,
                                                       java.lang.Class<T> type,
                                                       ParameterMode mode)
        Basic form for registering a positional parameter.
        Type Parameters:
        T - The parameterized Java type of the parameter.
        Parameters:
        position - The position
        type - The Java type of the parameter
        mode - The parameter mode (in, out, inout)
        Returns:
        The parameter registration memento
      • getParameterRegistration

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

        <T> ParameterRegistration<T> registerParameter​(java.lang.String parameterName,
                                                       java.lang.Class<T> type,
                                                       ParameterMode mode)
                                                throws NamedParametersNotSupportedException
        Basic form for registering a named parameter.
        Type Parameters:
        T - The parameterized Java type of the parameter.
        Parameters:
        parameterName - The parameter name
        type - The Java type of the parameter
        mode - The parameter mode (in, out, inout)
        Returns:
        The parameter registration memento
        Throws:
        NamedParametersNotSupportedException - When the underlying database is known to not support named procedure parameters.
      • getParameterRegistration

        ParameterRegistration getParameterRegistration​(java.lang.String name)
        Retrieve a previously registered parameter memento by the name under which it was registered.
        Parameters:
        name - The parameter name
        Returns:
        The parameter registration memento
        Throws:
        ParameterStrategyException - If the ProcedureCall is defined using positional parameters
        NoSuchParameterException - If no parameter with that name exists
      • getRegisteredParameters

        java.util.List<ParameterRegistration> getRegisteredParameters()
        Retrieve all registered parameters.
        Returns:
        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.

        Returns:
        The ProcedureOutputs representation
      • extractMemento

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

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