Class InsertValidationResponse.InsertError

  • Enclosing class:
    InsertValidationResponse

    public static class InsertValidationResponse.InsertError
    extends Object
    Wraps the row content and exception when there is a failure
    • Constructor Detail

      • InsertError

        public InsertError​(Object row,
                           long rowIndex)
    • Method Detail

      • getRowContent

        public Object getRowContent()
        Get the row content
      • getMessage

        public String getMessage()
        Get the exception message
      • setException

        public void setException​(SFException exception)
        Set the insert exception
        Parameters:
        exception - exception encountered during the insert
      • getException

        public SFException getException()
        Get the exception
      • setRowIndex

        public void setRowIndex​(long rowIndex)
        Set the row index
        Parameters:
        rowIndex - the corresponding row index in the original input row list
      • setExtraColNames

        public void setExtraColNames​(List<String> extraColNames)
        Set the extra column names in the input row compared with the table schema
      • getExtraColNames

        public List<String> getExtraColNames()
        Get the list of extra column names in the input row compared with the table schema
      • setMissingNotNullColNames

        public void setMissingNotNullColNames​(List<String> missingNotNullColNames)
        Set the missing non-nullable column names in the input row compared with the table schema
      • getMissingNotNullColNames

        public List<String> getMissingNotNullColNames()
        Get the list of missing non-nullable column names in the input row compared with the table schema