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​(java.sql.CallableStatement statement,
                  int startIndex,
                  SharedSessionContractImplementor session)
           throws java.sql.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:
        java.sql.SQLException - Indicates an issue calling into the CallableStatement
        java.lang.IllegalStateException - Thrown if this method is called on instances that return false for canDoExtraction()
      • extract

        T extract​(java.sql.CallableStatement statement,
                  java.lang.String[] paramNames,
                  SharedSessionContractImplementor session)
           throws java.sql.SQLException
        Perform the extraction
        Parameters:
        statement - The CallableStatement from which to extract the parameter value(s).
        paramNames - The parameter names.
        session - The originating session
        Returns:
        The extracted value.
        Throws:
        java.sql.SQLException - Indicates an issue calling into the CallableStatement
        java.lang.IllegalStateException - Thrown if this method is called on instances that return false for canDoExtraction()