Interface ProcedureParameterExtractionAware<T>

    • Method Detail

      • canDoExtraction

        boolean canDoExtraction()
        Can the given instance of this type actually perform the parameter value extractions?
        Returns:
        true indicates that @{link #extract} calls will not fail due to IllegalStateException.
      • extract

        T extract​(CallableStatement statement,
                  int startIndex,
                  SharedSessionContractImplementor session)
           throws SQLException
        Perform the extraction
        Parameters:
        statement - The CallableStatement from which to extract the parameter value(s).
        startIndex - The parameter index from which to start extracting; assumes the values (if multiple) are contiguous
        session - The originating session
        Returns:
        The extracted value.
        Throws:
        SQLException - Indicates an issue calling into the CallableStatement
        IllegalStateException - Thrown if this method is called on instances that return false for canDoExtraction()